CppUnit project page FAQ CppUnit home page

TestComposite.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTCOMPSITE_H // -*- C++ -*-
2 #define CPPUNIT_TESTCOMPSITE_H
3 
4 #include <cppunit/Test.h>
5 #include <string>
6 
7 #if CPPUNIT_NEED_DLL_DECL
8 #pragma warning( push )
9 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
10 #endif
11 
13 
14 
23 {
24 public:
25  TestComposite( const std::string &name = "" );
26 
27  ~TestComposite();
28 
29  void run( TestResult *result );
30 
31  int countTestCases() const;
32 
33  std::string getName() const;
34 
35 private:
36  TestComposite( const TestComposite &other );
37  TestComposite &operator =( const TestComposite &other );
38 
39  virtual void doStartSuite( TestResult *controller );
40  virtual void doRunChildTests( TestResult *controller );
41  virtual void doEndSuite( TestResult *controller );
42 
43 private:
44  const std::string m_name;
45 };
46 
47 
49 
50 #if CPPUNIT_NEED_DLL_DECL
51 #pragma warning( pop )
52 #endif
53 
54 #endif // CPPUNIT_TESTCOMPSITE_H

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