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:
76
3rdParty/include/cppunit/ui/mfc/MfcTestRunner.h
vendored
Normal file
76
3rdParty/include/cppunit/ui/mfc/MfcTestRunner.h
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
#ifndef CPPUNITUI_MFC_MFCTESTRUNNER_H
|
||||
#define CPPUNITUI_MFC_MFCTESTRUNNER_H
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <cppunit/Portability.h>
|
||||
#include <cppunit/portability/CppUnitVector.h>
|
||||
|
||||
/* Refer to MSDN documentation to know how to write and use MFC extension DLL:
|
||||
mk:@MSITStore:h:\DevStudio\MSDN\98VSa\1036\vcmfc.chm::/html/_mfcnotes_tn033.htm#_mfcnotes_how_to_write_an_mfc_extension_dll
|
||||
|
||||
This can be found in the index with "mfc extension"
|
||||
The basic:
|
||||
Using:
|
||||
- your application must use MFC DLL
|
||||
- memory allocation is done using the same heap
|
||||
- you must define the symbol _AFX_DLL
|
||||
|
||||
Building:
|
||||
- you must define the symbol _AFX_DLL and _AFX_EXT
|
||||
- export class using AFX_EXT_CLASS
|
||||
*/
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
class Test;
|
||||
class TestSuite;
|
||||
|
||||
|
||||
/*! \brief MFC test runner.
|
||||
* \ingroup ExecutingTest
|
||||
*
|
||||
* Use this to launch the MFC TestRunner. Usually called from you CWinApp subclass:
|
||||
*
|
||||
* \code
|
||||
* #include <cppunit/ui/mfc/MfcTestRunner.h>
|
||||
* #include <cppunit/extensions/TestFactoryRegistry.h>
|
||||
*
|
||||
* void
|
||||
* CHostAppApp::RunUnitTests()
|
||||
* {
|
||||
* CppUnit::MfcTestRunner runner;
|
||||
* runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
|
||||
*
|
||||
* runner.run();
|
||||
* }
|
||||
* \endcode
|
||||
* \see CppUnit::TextTestRunner, CppUnit::TestFactoryRegistry.
|
||||
*/
|
||||
class AFX_EXT_CLASS MfcTestRunner
|
||||
{
|
||||
public:
|
||||
MfcTestRunner();
|
||||
virtual ~MfcTestRunner();
|
||||
|
||||
void run();
|
||||
|
||||
void addTest( Test *test );
|
||||
|
||||
void addTests( const CppUnitVector<Test *> &tests );
|
||||
|
||||
protected:
|
||||
Test *getRootTest();
|
||||
|
||||
TestSuite *m_suite;
|
||||
|
||||
typedef CppUnitVector<Test *> Tests;
|
||||
Tests m_tests;
|
||||
};
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
#endif // CPPUNITUI_MFC_MFCTESTRUNNER_H
|
||||
21
3rdParty/include/cppunit/ui/mfc/TestRunner.h
vendored
Normal file
21
3rdParty/include/cppunit/ui/mfc/TestRunner.h
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CPPUNITUI_MFC_TESTRUNNER_H
|
||||
#define CPPUNITUI_MFC_TESTRUNNER_H
|
||||
|
||||
#include <cppunit/ui/mfc/MfcTestRunner.h>
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
#if defined(CPPUNIT_HAVE_NAMESPACES)
|
||||
namespace MfcUi
|
||||
{
|
||||
/*! Mfc TestRunner (DEPRECATED).
|
||||
* \deprecated Use CppUnit::MfcTestRunner instead.
|
||||
*/
|
||||
typedef CPPUNIT_NS::MfcTestRunner TestRunner;
|
||||
}
|
||||
#endif // defined(CPPUNIT_HAVE_NAMESPACES)
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
|
||||
#endif // CPPUNITUI_MFC_TESTRUNNER_H
|
||||
21
3rdParty/include/cppunit/ui/qt/Config.h
vendored
Normal file
21
3rdParty/include/cppunit/ui/qt/Config.h
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CPPUNIT_QTUI_CONFIG_H
|
||||
#define CPPUNIT_QTUI_CONFIG_H
|
||||
|
||||
/*! Macro to export symbol to DLL with VC++.
|
||||
*
|
||||
* - QTTESTRUNNER_DLL_BUILD must be defined when building the DLL.
|
||||
* - QTTESTRUNNER_DLL must be defined if linking against the DLL.
|
||||
* - If none of the above are defined then you are building or linking against
|
||||
* the static library.
|
||||
*/
|
||||
|
||||
#if defined( QTTESTRUNNER_DLL_BUILD )
|
||||
# define QTTESTRUNNER_API __declspec(dllexport)
|
||||
#elif defined ( QTTESTRUNNER_DLL )
|
||||
# define QTTESTRUNNER_API __declspec(dllimport)
|
||||
#else
|
||||
# define QTTESTRUNNER_API
|
||||
#endif
|
||||
|
||||
|
||||
#endif // CPPUNIT_QTUI_CONFIG_H
|
||||
85
3rdParty/include/cppunit/ui/qt/QtTestRunner.h
vendored
Normal file
85
3rdParty/include/cppunit/ui/qt/QtTestRunner.h
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
// //////////////////////////////////////////////////////////////////////////
|
||||
// Header file TestRunner.h for class TestRunner
|
||||
// (c)Copyright 2000, Baptiste Lepilleur.
|
||||
// Created: 2001/09/19
|
||||
// //////////////////////////////////////////////////////////////////////////
|
||||
#ifndef CPPUNIT_QTUI_QTTESTRUNNER_H
|
||||
#define CPPUNIT_QTUI_QTTESTRUNNER_H
|
||||
|
||||
#include <cppunit/portability/CppUnitVector.h>
|
||||
#include "Config.h"
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
|
||||
class Test;
|
||||
class TestSuite;
|
||||
|
||||
|
||||
/*!
|
||||
* \brief QT test runner.
|
||||
* \ingroup ExecutingTest
|
||||
*
|
||||
* Here is an example of usage:
|
||||
* \code
|
||||
* #include <cppunit/extensions/TestFactoryRegistry.h>
|
||||
* #include <cppunit/ui/qt/TestRunner.h>
|
||||
*
|
||||
* [...]
|
||||
*
|
||||
* void
|
||||
* QDepWindow::runTests()
|
||||
* {
|
||||
* CppUnit::QtUi::TestRunner runner;
|
||||
* runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
|
||||
* runner.run( true );
|
||||
* }
|
||||
* \endcode
|
||||
*
|
||||
*/
|
||||
class QTTESTRUNNER_API QtTestRunner
|
||||
{
|
||||
public:
|
||||
/*! Constructs a TestRunner object.
|
||||
*/
|
||||
QtTestRunner();
|
||||
|
||||
/*! Destructor.
|
||||
*/
|
||||
virtual ~QtTestRunner();
|
||||
|
||||
void run( bool autoRun =false );
|
||||
|
||||
void addTest( Test *test );
|
||||
|
||||
private:
|
||||
/// Prevents the use of the copy constructor.
|
||||
QtTestRunner( const QtTestRunner © );
|
||||
|
||||
/// Prevents the use of the copy operator.
|
||||
void operator =( const QtTestRunner © );
|
||||
|
||||
Test *getRootTest();
|
||||
|
||||
private:
|
||||
typedef CppUnitVector<Test *> Tests;
|
||||
Tests *_tests;
|
||||
|
||||
TestSuite *_suite;
|
||||
};
|
||||
|
||||
|
||||
#if CPPUNIT_HAVE_NAMESPACES
|
||||
namespace QtUi
|
||||
{
|
||||
/*! Qt TestRunner (DEPRECATED).
|
||||
* \deprecated Use CppUnit::QtTestRunner instead.
|
||||
*/
|
||||
typedef CPPUNIT_NS::QtTestRunner TestRunner;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
#endif // CPPUNIT_QTUI_QTTESTRUNNER_H
|
||||
11
3rdParty/include/cppunit/ui/qt/TestRunner.h
vendored
Normal file
11
3rdParty/include/cppunit/ui/qt/TestRunner.h
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// //////////////////////////////////////////////////////////////////////////
|
||||
// Header file TestRunner.h for class TestRunner
|
||||
// (c)Copyright 2000, Baptiste Lepilleur.
|
||||
// Created: 2001/09/19
|
||||
// //////////////////////////////////////////////////////////////////////////
|
||||
#ifndef CPPUNIT_QTUI_TESTRUNNER_H
|
||||
#define CPPUNIT_QTUI_TESTRUNNER_H
|
||||
|
||||
#include <cppunit/ui/qt/QtTestRunner.h>
|
||||
|
||||
#endif // CPPUNIT_QTUI_TESTRUNNER_H
|
||||
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