mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-03 07:52:29 +02:00

* chore(CppUnit) : style format and revise comment fix(CppUnit) : RepeatedTest compile error * chore(CppUnit) : remove TestResult forward declare in RepeatedTest.h
51 lines
703 B
C++
51 lines
703 B
C++
//
|
|
// TestDecorator.h
|
|
//
|
|
|
|
|
|
#ifndef CppUnit_TestDecorator_INCLUDED
|
|
#define CppUnit_TestDecorator_INCLUDED
|
|
|
|
|
|
#include "CppUnit/CppUnit.h"
|
|
#include "CppUnit/Guards.h"
|
|
#include "CppUnit/Test.h"
|
|
|
|
|
|
namespace CppUnit {
|
|
|
|
|
|
class TestResult;
|
|
|
|
|
|
/*
|
|
* A Decorator for Tests
|
|
*
|
|
* Does not assume ownership of the test it decorates
|
|
*
|
|
*/
|
|
class CppUnit_API TestDecorator: public Test
|
|
{
|
|
REFERENCEOBJECT(TestDecorator)
|
|
|
|
public:
|
|
TestDecorator(Test* test);
|
|
|
|
virtual ~TestDecorator();
|
|
|
|
int countTestCases() const;
|
|
|
|
void run(TestResult* result, const Test::Callback& callback = nullptr);
|
|
|
|
std::string toString() const;
|
|
|
|
protected:
|
|
Test* _test;
|
|
};
|
|
|
|
|
|
} // namespace CppUnit
|
|
|
|
|
|
#endif // CppUnit_TestDecorator_INCLUDED
|