mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-31 07:58:24 +02:00

* chore(CppUnit) : style format and revise comment fix(CppUnit) : RepeatedTest compile error * chore(CppUnit) : remove TestResult forward declare in RepeatedTest.h
42 lines
472 B
C++
42 lines
472 B
C++
//
|
|
// TestDecorator.cpp
|
|
//
|
|
|
|
|
|
#include "CppUnit/TestDecorator.h"
|
|
|
|
|
|
namespace CppUnit {
|
|
|
|
|
|
TestDecorator::TestDecorator(Test* test)
|
|
{
|
|
_test = test;
|
|
}
|
|
|
|
|
|
TestDecorator::~TestDecorator()
|
|
{
|
|
}
|
|
|
|
|
|
int TestDecorator::countTestCases() const
|
|
{
|
|
return _test->countTestCases();
|
|
}
|
|
|
|
|
|
void TestDecorator::run(TestResult* result, const Test::Callback& callback)
|
|
{
|
|
_test->run(result);
|
|
}
|
|
|
|
|
|
std::string TestDecorator::toString() const
|
|
{
|
|
return _test->toString();
|
|
}
|
|
|
|
|
|
} // namespace CppUnit
|