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:
matlabbe
2011-06-05 14:45:39 +00:00
commit 2d73090f3a
338 changed files with 56859 additions and 0 deletions

View 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

View 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
View 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

View 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 &copy );
/// Prevents the use of the copy operator.
void operator =( const QtTestRunner &copy );
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

View 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

View 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

View 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