CppUnit project page FAQ CppUnit home page

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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/extensions/TestDecorator.h>
00005 
00006 namespace CppUnit {
00007 
00008 class Test;
00009 class TestResult;
00010 
00011 
00016 class RepeatedTest : public TestDecorator 
00017 {
00018 public:
00019     RepeatedTest( Test *test, 
00020                   int timesRepeat ) : 
00021         TestDecorator( test ), 
00022         m_timesRepeat(timesRepeat) {}
00023 
00024     void run( TestResult *result );
00025     int countTestCases() const;
00026     std::string toString() const;
00027 
00028 private:
00029     RepeatedTest( const RepeatedTest & );
00030     void operator=( const RepeatedTest & );
00031 
00032     const int m_timesRepeat;
00033 };
00034 
00035 
00036 
00037 } // namespace CppUnit
00038 
00039 #endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H

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