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