CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TestDecorator.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_EXTENSIONS_TESTDECORATOR_H
00002 #define CPPUNIT_EXTENSIONS_TESTDECORATOR_H
00003 
00004 #include <cppunit/Portability.h>
00005 #include <cppunit/Test.h>
00006 
00007 CPPUNIT_NS_BEGIN
00008 
00009 
00010 class TestResult;
00011 
00012 
00021 class CPPUNIT_API TestDecorator : public Test
00022 {
00023 public:
00024   TestDecorator( Test *test );
00025   ~TestDecorator();
00026 
00027   int countTestCases() const;
00028 
00029   std::string getName() const;
00030 
00031   void run( TestResult *result );
00032 
00033   int getChildTestCount() const;
00034 
00035 protected:
00036   Test *doGetChildTestAt( int index ) const;
00037 
00038   Test *m_test;
00039 
00040 private:
00041   TestDecorator( const TestDecorator &);
00042   void operator =( const TestDecorator & );
00043 };
00044 
00045 
00046 CPPUNIT_NS_END
00047 
00048 #endif
00049 

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers