Go to the documentation of this file.00001 #ifndef CPPUNIT_TESTCOMPSITE_H // -*- C++ -*-
00002 #define CPPUNIT_TESTCOMPSITE_H
00003
00004 #include <cppunit/Test.h>
00005 #include <string>
00006
00007 #if CPPUNIT_NEED_DLL_DECL
00008 #pragma warning( push )
00009 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
00010 #endif
00011
00012 CPPUNIT_NS_BEGIN
00013
00014
00022 class CPPUNIT_API TestComposite : public Test
00023 {
00024 public:
00025 TestComposite( const std::string &name = "" );
00026
00027 ~TestComposite();
00028
00029 void run( TestResult *result );
00030
00031 int countTestCases() const;
00032
00033 std::string getName() const;
00034
00035 private:
00036 TestComposite( const TestComposite &other );
00037 TestComposite &operator =( const TestComposite &other );
00038
00039 virtual void doStartSuite( TestResult *controller );
00040 virtual void doRunChildTests( TestResult *controller );
00041 virtual void doEndSuite( TestResult *controller );
00042
00043 private:
00044 const std::string m_name;
00045 };
00046
00047
00048 CPPUNIT_NS_END
00049
00050 #if CPPUNIT_NEED_DLL_DECL
00051 #pragma warning( pop )
00052 #endif
00053
00054 #endif // CPPUNIT_TESTCOMPSITE_H