diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-19 13:11:38 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-19 13:11:38 +0000 |
| commit | 0aebae162476acace5580d3b54109111ff3514ca (patch) | |
| tree | ea7f2a17f2dc458026d5322fa07acb8ffe2ce8b7 /include/cppunit | |
| parent | 626e37841cfedef589fecb975876e7d22986cfb7 (diff) | |
| download | cppunit-0aebae162476acace5580d3b54109111ff3514ca.tar.gz | |
Src/cppunit/PlugInManager.
src/cppunit/PlugInManager.cpp: fixed bug in unload().
* include/cppunit/TypeInfoHelper.h:
* src/cppunit/TypeInfoHelper.cpp: Implementation is now always available
is CPPUNIT_HAVE_RTTI is not 0. This removes the need to use
different libraries. CPPUNIT_USE_TYPEINFO_NAME can be set on a
case by case basis for HelperMacros.
* src/cppunit/TestFactoryRegistry.cpp: removed unused include of
TypeInfoHelper.h.
* include/cppunit/TextTestProgressListener.h:
* src/cppunit/TextTestProgressListener.cpp: used endTest() instead
of done() to finalize.
* src/msvc6/TestPlugInRunner/TestPlugIn.h:
* src/msvc6/TestPlugInRunner/TestPlugIn.cpp: updated to use the
new test plug-in system.
* examples/simple/SimplePlugIn.cpp:
* examples/simple/simple_plugin.dsp: crossplatform test plug-in
example using 'simple'.
* examples/msvc6/EasyTestPlugIn/*: projects replaced with the
crossplatform projecct examples/simple/simple_plugin.dsp.
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/BriefTestProgressListener.h | 4 | ||||
| -rw-r--r-- | include/cppunit/TextTestProgressListener.h | 6 | ||||
| -rw-r--r-- | include/cppunit/extensions/TestSuiteBuilder.h | 4 | ||||
| -rw-r--r-- | include/cppunit/extensions/TypeInfoHelper.h | 4 |
4 files changed, 6 insertions, 12 deletions
diff --git a/include/cppunit/BriefTestProgressListener.h b/include/cppunit/BriefTestProgressListener.h index c3b4b9d..5d87e05 100644 --- a/include/cppunit/BriefTestProgressListener.h +++ b/include/cppunit/BriefTestProgressListener.h @@ -26,10 +26,6 @@ public: void endTest( Test *test ); - /*! Call this method after running the tests. - */ - void done(); - private: /// Prevents the use of the copy constructor. BriefTestProgressListener( const BriefTestProgressListener © ); diff --git a/include/cppunit/TextTestProgressListener.h b/include/cppunit/TextTestProgressListener.h index 180633e..2aa230b 100644 --- a/include/cppunit/TextTestProgressListener.h +++ b/include/cppunit/TextTestProgressListener.h @@ -22,11 +22,11 @@ public: virtual ~TextTestProgressListener(); void startTest( Test *test ); + void addFailure( const TestFailure &failure ); - /*! Call this method after running the tests. - */ - void done(); + void endTestRun( Test *test, + TestResult *eventManager ); private: /// Prevents the use of the copy constructor. diff --git a/include/cppunit/extensions/TestSuiteBuilder.h b/include/cppunit/extensions/TestSuiteBuilder.h index 1f3e028..709053b 100644 --- a/include/cppunit/extensions/TestSuiteBuilder.h +++ b/include/cppunit/extensions/TestSuiteBuilder.h @@ -5,10 +5,8 @@ #include <memory> #include <cppunit/TestSuite.h> #include <cppunit/TestCaller.h> +#include <cppunit/extensions/TypeInfoHelper.h> -#if CPPUNIT_USE_TYPEINFO_NAME -# include <cppunit/extensions/TypeInfoHelper.h> -#endif namespace CppUnit { diff --git a/include/cppunit/extensions/TypeInfoHelper.h b/include/cppunit/extensions/TypeInfoHelper.h index 5199a70..e12d4c0 100644 --- a/include/cppunit/extensions/TypeInfoHelper.h +++ b/include/cppunit/extensions/TypeInfoHelper.h @@ -3,7 +3,7 @@ #include <cppunit/Portability.h> -#if CPPUNIT_USE_TYPEINFO_NAME +#if CPPUNIT_HAVE_RTTI #include <typeinfo> @@ -26,6 +26,6 @@ namespace CppUnit { } // namespace CppUnit -#endif +#endif // CPPUNIT_HAVE_RTTI #endif // CPPUNIT_TYPEINFOHELPER_H |
