summaryrefslogtreecommitdiff
path: root/src/cppunit/TestDecorator.cpp
blob: 4e25a6af9b42191c0a14e0f5938fbf8087f2499c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <cppunit/extensions/TestDecorator.h>

CPPUNIT_NS_BEGIN


TestDecorator::TestDecorator( Test *test )
    : m_test( test)
{ 
}


TestDecorator::~TestDecorator()
{
  delete m_test;
}


int 
TestDecorator::countTestCases() const
{ 
  return m_test->countTestCases(); 
}


void 
TestDecorator::run( TestResult *result )
{ 
  m_test->run(result); 
}


std::string 
TestDecorator::getName() const
{ 
  return m_test->getName(); 
}


int 
TestDecorator::getChildTestCount() const
{
  return m_test->getChildTestCount();
}


Test *
TestDecorator::doGetChildTestAt( int index ) const
{
  return m_test->getChildTestAt( index );
}


CPPUNIT_NS_END