blob: bcd47d08c127e2f3b2f443ee375272a74322d57c (
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
|
#ifndef CPP_UINT_TESTSETUP_H
#define CPP_UINT_TESTSETUP_H
#ifndef CPPUNIT_TESTDECORATOR_H
#include "TestDecorator.h"
#endif
namespace CppUnit {
class Test;
class TestResult;
class TestSetup : public TestDecorator
{
public:
TestSetup (Test *test) : TestDecorator (test) {}
run (TestResult *result);
protected:
void setUp () {}
void tearDown () {}
private:
TestSetup( const TestSetup & );
void operator =( const TestSetup & );
};
inline TestSetup::run (TestResult *result)
{ setUp (); TestDecorator::run (result); tearDown (); }
} // namespace CppUnit
#endif
|