CppUnit project page FAQ CppUnit home page

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

RepeatedTest.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_EXTENSIONS_REPEATEDTEST_H
00002 #define CPPUNIT_EXTENSIONS_REPEATEDTEST_H
00003 
00004 #include <cppunit/Portability.h>
00005 #include <cppunit/extensions/TestDecorator.h>
00006 
00007 namespace CppUnit {
00008 
00009 class Test;
00010 class TestResult;
00011 
00012 
00017 class CPPUNIT_API RepeatedTest : public TestDecorator 
00018 {
00019 public:
00020     RepeatedTest( Test *test, 
00021                   int timesRepeat ) : 
00022         TestDecorator( test ), 
00023         m_timesRepeat(timesRepeat) {}
00024 
00025     void run( TestResult *result );
00026     int countTestCases() const;
00027     std::string toString() const;
00028 
00029 private:
00030     RepeatedTest( const RepeatedTest & );
00031     void operator=( const RepeatedTest & );
00032 
00033     const int m_timesRepeat;
00034 };
00035 
00036 
00037 
00038 } // namespace CppUnit
00039 
00040 #endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H

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