Imported Upstream version 2.81
[platform/upstream/libbullet.git] / UnitTests / cppunit / src / cppunit / TestDecorator.cpp
1 #include <cppunit/extensions/TestDecorator.h>
2
3 CPPUNIT_NS_BEGIN
4
5
6 TestDecorator::TestDecorator( Test *test )
7     : m_test( test)
8
9 }
10
11
12 TestDecorator::~TestDecorator()
13 {
14   delete m_test;
15 }
16
17
18 int 
19 TestDecorator::countTestCases() const
20
21   return m_test->countTestCases(); 
22 }
23
24
25 void 
26 TestDecorator::run( TestResult *result )
27
28   m_test->run(result); 
29 }
30
31
32 std::string 
33 TestDecorator::getName() const
34
35   return m_test->getName(); 
36 }
37
38
39 int 
40 TestDecorator::getChildTestCount() const
41 {
42   return m_test->getChildTestCount();
43 }
44
45
46 Test *
47 TestDecorator::doGetChildTestAt( int index ) const
48 {
49   return m_test->getChildTestAt( index );
50 }
51
52
53 CPPUNIT_NS_END