CppUnit project page FAQ

TestDecorator.h
Go to the documentation of this file.
1#ifndef CPPUNIT_EXTENSIONS_TESTDECORATOR_H
2#define CPPUNIT_EXTENSIONS_TESTDECORATOR_H
3
5#include <cppunit/Test.h>
6
8
9
10class TestResult;
11
12
22{
23public:
24 TestDecorator( Test *test );
26
27 int countTestCases() const;
28
29 std::string getName() const;
30
31 void run( TestResult *result );
32
33 int getChildTestCount() const;
34
35protected:
36 Test *doGetChildTestAt( int index ) const;
37
39
40private:
42 void operator =( const TestDecorator & );
43};
44
45
47
48#endif
49
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Decorator for Tests.
Definition TestDecorator.h:22
TestDecorator(const TestDecorator &)
Test * m_test
Definition TestDecorator.h:38
Base class for all test objects.
Definition Test.h:26
virtual std::string getName() const =0
Returns the test name.
virtual int getChildTestCount() const =0
Returns the number of direct child of the test.
virtual void run(TestResult *result)=0
Run the test, collecting results.
virtual int countTestCases() const =0
Return the number of test cases invoked by run().
virtual Test * doGetChildTestAt(int index) const =0
Returns the child test of the specified valid index.
Manages TestListener.
Definition TestResult.h:48

Send comments to:
CppUnit Developers