diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-07-14 18:48:32 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-07-14 18:48:32 +0000 |
| commit | 251c1ff8aecaa608ef9e6041c2691d369430bf7b (patch) | |
| tree | 183795a04e06a8a94a64214afc2a1cc8a12a5486 /src/DllPlugInTester/DllPlugInTester.cpp | |
| parent | 0807889cb53679c5a9e741e8dedc3668ef59729b (diff) | |
| download | cppunit-251c1ff8aecaa608ef9e6041c2691d369430bf7b.tar.gz | |
CodingGuideLines.
CodingGuideLines.txt: added. CppUnit's coding guidelines for portability.
* include/cppunit/portability/CppUnitStack.h: added. wrapper for std::stack.
* include/cppunit/portability/CppUnitSet.h: added. wrapper for std::set.
* include/cppunit/ui/text/TestRunner.h: fixed namespace definition for
deprecated TestRunner.
* include/cppunit/TestAssert.h:
* src/cppunit/TestAssert.cpp: removed old deprecated functions that did
not use SourceLine. Moved assertEquals() and assertDoubleEquals() into
CppUnit namespace.
* src/cppunit/TestFactoryRegistry.cpp: use CppUnitMap instead of std::map.
* src/DllPlugInTester/CommandLineParser.h: use CppUnitDeque instead
std::deque.
* examples/cppunittest/*.h:
* examples/cppunittest/*.cpp: removed all usage of CppUnitTest namespace.
Everything is now in global space.
* examples/*/*.h:
* examples/*/*.cpp: replaced usage of CppUnit:: with CPPUNIT_NS::.
* examples/ClockerPlugIn/ClockerModel.h: use CppUnit STL wrapper instead
of STL container.
Diffstat (limited to 'src/DllPlugInTester/DllPlugInTester.cpp')
| -rw-r--r-- | src/DllPlugInTester/DllPlugInTester.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/DllPlugInTester/DllPlugInTester.cpp b/src/DllPlugInTester/DllPlugInTester.cpp index 3bbb797..21dea9f 100644 --- a/src/DllPlugInTester/DllPlugInTester.cpp +++ b/src/DllPlugInTester/DllPlugInTester.cpp @@ -33,13 +33,13 @@ bool runTests( const CommandLineParser &parser ) { bool wasSuccessful = false; - CppUnit::PlugInManager plugInManager; + CPPUNIT_NS::PlugInManager plugInManager; // The following scope is used to explicitely free all memory allocated before // unload the test plug-ins (uppon plugInManager destruction). { - CppUnit::TestResult controller; - CppUnit::TestResultCollector result; + CPPUNIT_NS::TestResult controller; + CPPUNIT_NS::TestResultCollector result; controller.addListener( &result ); // Set up outputters @@ -51,14 +51,14 @@ runTests( const CommandLineParser &parser ) if ( !parser.getXmlFileName().empty() ) xmlStream = new std::ofstream( parser.getXmlFileName().c_str() ); - CppUnit::XmlOutputter xmlOutputter( &result, *xmlStream, parser.getEncoding() ); + CPPUNIT_NS::XmlOutputter xmlOutputter( &result, *xmlStream, parser.getEncoding() ); xmlOutputter.setStyleSheet( parser.getXmlStyleSheet() ); - CppUnit::TextOutputter textOutputter( &result, *stream ); - CppUnit::CompilerOutputter compilerOutputter( &result, *stream ); + CPPUNIT_NS::TextOutputter textOutputter( &result, *stream ); + CPPUNIT_NS::CompilerOutputter compilerOutputter( &result, *stream ); // Set up test listeners - CppUnit::BriefTestProgressListener briefListener; - CppUnit::TextTestProgressListener dotListener; + CPPUNIT_NS::BriefTestProgressListener briefListener; + CPPUNIT_NS::TextTestProgressListener dotListener; if ( parser.useBriefTestProgress() ) controller.addListener( &briefListener ); else if ( !parser.noTestProgress() ) @@ -75,8 +75,8 @@ runTests( const CommandLineParser &parser ) plugInManager.addListener( &controller ); // Adds the default registry suite - CppUnit::TestRunner runner; - runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() ); + CPPUNIT_NS::TestRunner runner; + runner.addTest( CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest() ); // Runs the specified test try @@ -240,7 +240,7 @@ main( int argc, { wasSuccessful = runTests( parser ); } - catch ( CppUnit::DynamicLibraryManagerException &e ) + catch ( CPPUNIT_NS::DynamicLibraryManagerException &e ) { std::cerr << "Failed to load test plug-in:" << std::endl << e.what() << std::endl; |
