mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
moved rtabmap-ros-pkg project in this project
git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@52 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
24
3rdParty/include/cppunit/ui/text/TestRunner.h
vendored
Normal file
24
3rdParty/include/cppunit/ui/text/TestRunner.h
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef CPPUNIT_UI_TEXT_TESTRUNNER_H
|
||||
#define CPPUNIT_UI_TEXT_TESTRUNNER_H
|
||||
|
||||
#include <cppunit/ui/text/TextTestRunner.h>
|
||||
|
||||
|
||||
#if defined(CPPUNIT_HAVE_NAMESPACES)
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
namespace TextUi
|
||||
{
|
||||
|
||||
/*! Text TestRunner (DEPRECATED).
|
||||
* \deprecated Use TextTestRunner instead.
|
||||
*/
|
||||
typedef TextTestRunner TestRunner;
|
||||
|
||||
}
|
||||
CPPUNIT_NS_END
|
||||
|
||||
#endif // defined(CPPUNIT_HAVE_NAMESPACES)
|
||||
|
||||
|
||||
#endif // CPPUNIT_UI_TEXT_TESTRUNNER_H
|
||||
97
3rdParty/include/cppunit/ui/text/TextTestRunner.h
vendored
Normal file
97
3rdParty/include/cppunit/ui/text/TextTestRunner.h
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
#ifndef CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
|
||||
#define CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
|
||||
|
||||
|
||||
#include <cppunit/Portability.h>
|
||||
#include <string>
|
||||
#include <cppunit/TestRunner.h>
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
|
||||
class Outputter;
|
||||
class Test;
|
||||
class TestSuite;
|
||||
class TextOutputter;
|
||||
class TestResult;
|
||||
class TestResultCollector;
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
* \brief A text mode test runner.
|
||||
* \ingroup WritingTestResult
|
||||
* \ingroup ExecutingTest
|
||||
*
|
||||
* The test runner manage the life cycle of the added tests.
|
||||
*
|
||||
* The test runner can run only one of the added tests or all the tests.
|
||||
*
|
||||
* TestRunner prints out a trace as the tests are executed followed by a
|
||||
* summary at the end. The trace and summary print are optional.
|
||||
*
|
||||
* Here is an example of use:
|
||||
*
|
||||
* \code
|
||||
* CppUnit::TextTestRunner runner;
|
||||
* runner.addTest( ExampleTestCase::suite() );
|
||||
* runner.run( "", true ); // Run all tests and wait
|
||||
* \endcode
|
||||
*
|
||||
* The trace is printed using a TextTestProgressListener. The summary is printed
|
||||
* using a TextOutputter.
|
||||
*
|
||||
* You can specify an alternate Outputter at construction
|
||||
* or later with setOutputter().
|
||||
*
|
||||
* After construction, you can register additional TestListener to eventManager(),
|
||||
* for a custom progress trace, for example.
|
||||
*
|
||||
* \code
|
||||
* CppUnit::TextTestRunner runner;
|
||||
* runner.addTest( ExampleTestCase::suite() );
|
||||
* runner.setOutputter( CppUnit::CompilerOutputter::defaultOutputter(
|
||||
* &runner.result(),
|
||||
* std::cerr ) );
|
||||
* MyCustomProgressTestListener progress;
|
||||
* runner.eventManager().addListener( &progress );
|
||||
* runner.run( "", true ); // Run all tests and wait
|
||||
* \endcode
|
||||
*
|
||||
* \see CompilerOutputter, XmlOutputter, TextOutputter.
|
||||
*/
|
||||
class CPPUNIT_API TextTestRunner : public CPPUNIT_NS::TestRunner
|
||||
{
|
||||
public:
|
||||
TextTestRunner( Outputter *outputter =NULL );
|
||||
|
||||
virtual ~TextTestRunner();
|
||||
|
||||
bool run( std::string testPath ="",
|
||||
bool doWait = false,
|
||||
bool doPrintResult = true,
|
||||
bool doPrintProgress = true );
|
||||
|
||||
void setOutputter( Outputter *outputter );
|
||||
|
||||
TestResultCollector &result() const;
|
||||
|
||||
TestResult &eventManager() const;
|
||||
|
||||
public: // overridden from TestRunner (to avoid hidden virtual function warning)
|
||||
virtual void run( TestResult &controller,
|
||||
const std::string &testPath = "" );
|
||||
|
||||
protected:
|
||||
virtual void wait( bool doWait );
|
||||
virtual void printResult( bool doPrintResult );
|
||||
|
||||
TestResultCollector *m_result;
|
||||
TestResult *m_eventManager;
|
||||
Outputter *m_outputter;
|
||||
};
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
#endif // CPPUNIT_UI_TEXT_TEXTTESTRUNNER_H
|
||||
Reference in New Issue
Block a user