mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@52 f169173b-cf89-36c8-b27e-44dbe73f0c83
41 lines
758 B
C++
41 lines
758 B
C++
#ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
|
|
#define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
|
|
|
|
#include <cppunit/Portability.h>
|
|
#include <cppunit/TestCase.h>
|
|
|
|
CPPUNIT_NS_BEGIN
|
|
|
|
|
|
/*! \brief Decorator for Test cases.
|
|
*
|
|
* TestCaseDecorator provides an alternate means to extend functionality
|
|
* of a test class without subclassing the test. Instead, one can
|
|
* subclass the decorater and use it to wrap the test class.
|
|
*
|
|
* Does not assume ownership of the test it decorates
|
|
*/
|
|
class CPPUNIT_API TestCaseDecorator : public TestCase
|
|
{
|
|
public:
|
|
TestCaseDecorator( TestCase *test );
|
|
~TestCaseDecorator();
|
|
|
|
std::string getName() const;
|
|
|
|
void setUp();
|
|
|
|
void tearDown();
|
|
|
|
void runTest();
|
|
|
|
protected:
|
|
TestCase *m_test;
|
|
};
|
|
|
|
|
|
CPPUNIT_NS_END
|
|
|
|
#endif
|
|
|