~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/src/cppunit/TestCaseDecorator.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <cppunit/extensions/TestCaseDecorator.h>
2
 
 
3
 
CPPUNIT_NS_BEGIN
4
 
 
5
 
 
6
 
TestCaseDecorator::TestCaseDecorator( TestCase *test )
7
 
    : TestCase( test->getName() ),
8
 
      m_test( test )
9
 
10
 
}
11
 
 
12
 
 
13
 
TestCaseDecorator::~TestCaseDecorator()
14
 
{
15
 
  delete m_test;
16
 
}
17
 
 
18
 
 
19
 
std::string 
20
 
TestCaseDecorator::getName() const
21
 
22
 
  return m_test->getName(); 
23
 
}
24
 
 
25
 
 
26
 
void 
27
 
TestCaseDecorator::setUp()
28
 
{
29
 
  m_test->setUp();
30
 
}
31
 
 
32
 
 
33
 
void 
34
 
TestCaseDecorator::tearDown()
35
 
{
36
 
  m_test->tearDown();
37
 
}
38
 
 
39
 
 
40
 
void 
41
 
TestCaseDecorator::runTest()
42
 
{
43
 
  m_test->runTest();
44
 
}
45
 
 
46
 
 
47
 
CPPUNIT_NS_END