CppUnit project page FAQ

TestSuite.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTSUITE_H // -*- C++ -*-
2 #define CPPUNIT_TESTSUITE_H
3 
4 #include <cppunit/Portability.h>
5 
6 #if CPPUNIT_NEED_DLL_DECL
7 #pragma warning( push )
8 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
9 #endif
10 
11 #include <cppunit/TestComposite.h>
13 
15 
16 
17 #if CPPUNIT_NEED_DLL_DECL
18 // template class CPPUNIT_API std::vector<Test *>;
19 #endif
20 
21 
41 {
42 public:
45  TestSuite( std::string name = "" );
46 
47  ~TestSuite();
48 
52  void addTest( Test *test );
53 
59  const CppUnitVector<Test *> &getTests() const;
60 
63  virtual void deleteContents();
64 
65  int getChildTestCount() const;
66 
67  Test *doGetChildTestAt( int index ) const;
68 
69 private:
70  CppUnitVector<Test *> m_tests;
71 };
72 
73 
75 
76 #if CPPUNIT_NEED_DLL_DECL
77 #pragma warning( pop )
78 #endif
79 
80 #endif // CPPUNIT_TESTSUITE_H

Send comments to:
CppUnit Developers