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 /examples/ClockerPlugIn/ClockerPlugIn.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 'examples/ClockerPlugIn/ClockerPlugIn.cpp')
| -rw-r--r-- | examples/ClockerPlugIn/ClockerPlugIn.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/ClockerPlugIn/ClockerPlugIn.cpp b/examples/ClockerPlugIn/ClockerPlugIn.cpp index dbdd672..3ff98c6 100644 --- a/examples/ClockerPlugIn/ClockerPlugIn.cpp +++ b/examples/ClockerPlugIn/ClockerPlugIn.cpp @@ -25,8 +25,8 @@ public: } - void initialize( CppUnit::TestFactoryRegistry *registry, - const CppUnit::Parameters ¶meters ) + void initialize( CPPUNIT_NS::TestFactoryRegistry *registry, + const CPPUNIT_NS::Parameters ¶meters ) { bool text = false; if ( parameters.size() > 0 && parameters[0] == "text" ) @@ -38,19 +38,19 @@ public: } - void addListener( CppUnit::TestResult *eventManager ) + void addListener( CPPUNIT_NS::TestResult *eventManager ) { eventManager->addListener( m_dumper ); } - void removeListener( CppUnit::TestResult *eventManager ) + void removeListener( CPPUNIT_NS::TestResult *eventManager ) { eventManager->removeListener( m_dumper ); } - void addXmlOutputterHooks( CppUnit::XmlOutputter *outputter ) + void addXmlOutputterHooks( CPPUNIT_NS::XmlOutputter *outputter ) { outputter->addHook( m_xmlHook ); } @@ -61,7 +61,7 @@ public: } - void uninitialize( CppUnit::TestFactoryRegistry *registry ) + void uninitialize( CPPUNIT_NS::TestFactoryRegistry *registry ) { } |
