File indexing completed on 2024-06-09 04:22:04

0001 /*
0002  *  SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KIS_COUNT_VISITOR_TESTER_H
0008 #define KIS_COUNT_VISITOR_TESTER_H
0009 
0010 #include <simpletest.h>
0011 
0012 #include "kis_node.h"
0013 #include <testing_nodes.h>
0014 
0015 class RootNode : public TestUtil::DefaultNode
0016 {
0017     Q_OBJECT
0018 public:
0019     KisNodeSP clone() const override {
0020         return new RootNode(*this);
0021     }
0022 };
0023 
0024 
0025 class TestNodeA : public TestUtil::DefaultNode
0026 {
0027     Q_OBJECT
0028 public:
0029     KisNodeSP clone() const override {
0030         return new TestNodeA(*this);
0031     }
0032 };
0033 
0034 class TestNodeB : public TestUtil::DefaultNode
0035 {
0036     Q_OBJECT
0037 public:
0038     KisNodeSP clone() const override {
0039         return new TestNodeB(*this);
0040     }
0041 };
0042 
0043 class TestNodeC : public TestUtil::DefaultNode
0044 {
0045     Q_OBJECT
0046 public:
0047     KisNodeSP clone() const override {
0048         return new TestNodeC(*this);
0049     }
0050 };
0051 
0052 
0053 class KisCountVisitorTest : public QObject
0054 {
0055     Q_OBJECT
0056 
0057 private Q_SLOTS:
0058 
0059     void testCounting();
0060 };
0061 
0062 #endif
0063