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