1 // 2 // TestDecorator.cpp 3 // 4 5 6 #include "CppUnit/TestDecorator.h" 7 8 9 namespace CppUnit { 10 11 TestDecorator(Test * test)12TestDecorator::TestDecorator(Test* test) 13 { 14 _test = test; 15 } 16 17 ~TestDecorator()18TestDecorator::~TestDecorator() 19 { 20 } 21 22 countTestCases() const23int TestDecorator::countTestCases() const 24 { 25 return _test->countTestCases(); 26 } 27 28 run(TestResult * result)29void TestDecorator::run(TestResult* result) 30 { 31 _test->run(result); 32 } 33 34 toString() const35std::string TestDecorator::toString() const 36 { 37 return _test->toString(); 38 } 39 40 41 } // namespace CppUnit 42