CppUnit project page | FAQ | CppUnit home page

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

TestSuite.h
Go to the documentation of this file.

    00001 #ifndef CPPUNIT_TESTSUITE_H    // -*- C++ -*-
    00002 #define CPPUNIT_TESTSUITE_H
    00003
    00004 #include <cppunit/Portability.h>
    00005
    00006 #if CPPUNIT_NEED_DLL_DECL
    00007 #pragma warning( push )
    00008 #pragma warning( disable: 4251 )  // X needs to have dll-interface to be used by clients of class Z
    00009 #endif
    00010
    00011 #include <cppunit/TestComposite.h>
    00012 #include <cppunit/portability/CppUnitVector.h>
    00013
    00014 CPPUNIT_NS_BEGIN
    00015
    00016
    00017 #if CPPUNIT_NEED_DLL_DECL
    00018 //  template class CPPUNIT_API std::vector<Test *>;
    00019 #endif
    00020
    00021
    00040 class CPPUNIT_API TestSuite : public TestComposite
    00041 {
    00042 public:
    00045   TestSuite( std::string name = "" );
    00046
    00047   ~TestSuite();
    00048
    00052   void addTest( Test *test );
    00053
    00059   const CppUnitVector<Test *> &getTests() const;
    00060
    00063   virtual void deleteContents();
    00064
    00065   int getChildTestCount() const;
    00066
    00067   Test *doGetChildTestAt( int index ) const;
    00068
    00069 private:
    00070   CppUnitVector<Test *> m_tests;
    00071 };
    00072
    00073
    00074 CPPUNIT_NS_END
    00075
    00076 #if CPPUNIT_NEED_DLL_DECL
    00077 #pragma warning( pop )
    00078 #endif
    00079
    00080 #endif // CPPUNIT_TESTSUITE_H

| hosts this site. |  | Send comments to: CppUnit Developers