Last change
on this file since 876 was
876,
checked in by sam, 9 years ago
|
contrib: add a precompiled Win32 version of CppUnit and update build system
accordingly.
|
File size:
758 bytes
|
Line | |
---|
1 | #ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H |
---|
2 | #define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H |
---|
3 | |
---|
4 | #include <cppunit/Portability.h> |
---|
5 | #include <cppunit/TestCase.h> |
---|
6 | |
---|
7 | CPPUNIT_NS_BEGIN |
---|
8 | |
---|
9 | |
---|
10 | /*! \brief Decorator for Test cases. |
---|
11 | * |
---|
12 | * TestCaseDecorator provides an alternate means to extend functionality |
---|
13 | * of a test class without subclassing the test. Instead, one can |
---|
14 | * subclass the decorater and use it to wrap the test class. |
---|
15 | * |
---|
16 | * Does not assume ownership of the test it decorates |
---|
17 | */ |
---|
18 | class CPPUNIT_API TestCaseDecorator : public TestCase |
---|
19 | { |
---|
20 | public: |
---|
21 | TestCaseDecorator( TestCase *test ); |
---|
22 | ~TestCaseDecorator(); |
---|
23 | |
---|
24 | std::string getName() const; |
---|
25 | |
---|
26 | void setUp(); |
---|
27 | |
---|
28 | void tearDown(); |
---|
29 | |
---|
30 | void runTest(); |
---|
31 | |
---|
32 | protected: |
---|
33 | TestCase *m_test; |
---|
34 | }; |
---|
35 | |
---|
36 | |
---|
37 | CPPUNIT_NS_END |
---|
38 | |
---|
39 | #endif |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.