the headers and importing the required classes in the implementation files * automatic whitespace cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30586 a95241bf-73f2-0310-859d-f6bbb57e9c96
41 lines
833 B
C++
41 lines
833 B
C++
#ifndef CPPUNIT_EXTENSIONS_REPEATEDTEST_H
|
|
#define CPPUNIT_EXTENSIONS_REPEATEDTEST_H
|
|
|
|
#include <cppunit/Portability.h>
|
|
#include <cppunit/extensions/TestDecorator.h>
|
|
|
|
namespace CppUnit {
|
|
|
|
class Test;
|
|
class TestResult;
|
|
|
|
|
|
/*! \brief Decorator that runs a test repeatedly.
|
|
*
|
|
* Does not assume ownership of the test it decorates
|
|
*/
|
|
class CPPUNIT_API RepeatedTest : public TestDecorator
|
|
{
|
|
public:
|
|
RepeatedTest( Test *test,
|
|
int timesRepeat ) :
|
|
TestDecorator( test ),
|
|
m_timesRepeat(timesRepeat) {}
|
|
|
|
void run( TestResult *result );
|
|
int countTestCases() const;
|
|
std::string toString() const;
|
|
|
|
private:
|
|
RepeatedTest( const RepeatedTest & );
|
|
void operator=( const RepeatedTest & );
|
|
|
|
const int m_timesRepeat;
|
|
};
|
|
|
|
|
|
|
|
} // namespace CppUnit
|
|
|
|
#endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H
|