From 251c1ff8aecaa608ef9e6041c2691d369430bf7b Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Sun, 14 Jul 2002 18:48:32 +0000 Subject: 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. --- examples/ClockerPlugIn/ClockerModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/ClockerPlugIn/ClockerModel.cpp') diff --git a/examples/ClockerPlugIn/ClockerModel.cpp b/examples/ClockerPlugIn/ClockerModel.cpp index 60e87ad..c20ede1 100644 --- a/examples/ClockerPlugIn/ClockerModel.cpp +++ b/examples/ClockerPlugIn/ClockerModel.cpp @@ -26,7 +26,7 @@ ClockerModel::setExpectedTestCount( int count ) void -ClockerModel::enterTest( CppUnit::Test *test, +ClockerModel::enterTest( CPPUNIT_NS::Test *test, bool isSuite ) { m_currentPath.add( test ); @@ -50,7 +50,7 @@ ClockerModel::enterTest( CppUnit::Test *test, void -ClockerModel::exitTest( CppUnit::Test *test, +ClockerModel::exitTest( CPPUNIT_NS::Test *test, bool isSuite ) { m_tests[ m_testIndexes.top() ].m_timer.finish(); @@ -113,7 +113,7 @@ ClockerModel::isSuite( int testIndex ) const } -const CppUnit::TestPath & +const CPPUNIT_NS::TestPath & ClockerModel::testPathFor( int testIndex ) const { return m_tests[ testIndex ].m_path; @@ -121,7 +121,7 @@ ClockerModel::testPathFor( int testIndex ) const int -ClockerModel::indexOf( CppUnit::Test *test ) const +ClockerModel::indexOf( CPPUNIT_NS::Test *test ) const { TestToIndexes::const_iterator itFound = m_testToIndexes.find( test ); if ( itFound != m_testToIndexes.end() ) -- cgit v1.2.1