From 212df8f138166ed053d63d6d54e1a1290e395ae5 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 25 Jun 2004 09:41:28 +0000 Subject: Include/cppunit/Portability. include/cppunit/Portability.h: moved OStringStream alias definition to Portability/Stream.h. User need to define EVC4 to indicate that config-evc4.h should be used. (how to we detect this automatically ?). Notes that this means it might be needed to add #include to some headers since its no longer included by Portability.h. * include/cppunit/Portability/Stream.h: define alias OStringStream, stdCOut(), and OFileStream. If CPPUNIT_NO_STREAM is defined (evc4 config), then provides our own implementation (based on sprintf and fwrite). * include/cppunit/config/config-evc4.h: config file for embedded visual c++ 4. Still need to detect for this platform in Portability.h (currently relying on EVC4 being defined...) * *.[cpp/h]: most source files have been impacted with the following change: #include -> #include std::ostream -> CPPUNIT_NS::OStream std::ofstream -> CPPUNIT_NS::OFileStream std::cout -> CPPUNIT_NS::stdCOut() std::endl -> "\n" Also, code using std::cin as been defined out if CPPUNIT_NO_STREAM was defined. The exact list of impact files can be obtain in CVS using tags: TG_CPPUNIT_NO_STREAM_BEFORE & TG_CPPUNIT_NO_STREAM_AFTER. --- include/cppunit/plugin/DynamicLibraryManager.h | 1 + include/cppunit/plugin/TestPlugInDefaultImpl.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include/cppunit/plugin') diff --git a/include/cppunit/plugin/DynamicLibraryManager.h b/include/cppunit/plugin/DynamicLibraryManager.h index b93ebad..d70ccde 100644 --- a/include/cppunit/plugin/DynamicLibraryManager.h +++ b/include/cppunit/plugin/DynamicLibraryManager.h @@ -2,6 +2,7 @@ #define CPPUNIT_PLUGIN_DYNAMICLIBRARYMANAGER_H #include +#include #if !defined(CPPUNIT_NO_TESTPLUGIN) diff --git a/include/cppunit/plugin/TestPlugInDefaultImpl.h b/include/cppunit/plugin/TestPlugInDefaultImpl.h index f22d781..fa4b807 100644 --- a/include/cppunit/plugin/TestPlugInDefaultImpl.h +++ b/include/cppunit/plugin/TestPlugInDefaultImpl.h @@ -18,7 +18,7 @@ class TestSuite; * * Override getSuiteName() to specify the suite name. Default is "All Tests". * - * CppUnitTestPlugIn::::getTestSuite() returns a suite that contains + * CppUnitTestPlugIn::getTestSuite() returns a suite that contains * all the test registered to the default test factory registry * ( TestFactoryRegistry::getRegistry() ). * -- cgit v1.2.1