[Cppunit-cvs] cppunit2/src/cpput registry.cpp, 1.5, 1.6 testcase.cpp, 1.15, 1.16
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2007-08-15 11:21:01
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv8069/src/cpput Modified Files: registry.cpp testcase.cpp Log Message: Added support for light test fixture (a la CppUnitLite). See lightfixture.h and example/light_fixture. Added support for direct declaration and registration of test in plain C function. See testfunction.h and example/test_function. Index: registry.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/registry.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** registry.cpp 13 Nov 2005 10:12:01 -0000 1.5 --- registry.cpp 15 Aug 2007 11:20:57 -0000 1.6 *************** *** 64,67 **** --- 64,74 ---- + void + Registry::addChildToDefault( const std::string &childSuiteName ) + { + addChild( defaultParentSuiteName(), childSuiteName ); + } + + bool Registry::removeChild( const std::string &parentSuiteName, Index: testcase.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testcase.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** testcase.cpp 13 Nov 2005 10:12:01 -0000 1.15 --- testcase.cpp 15 Aug 2007 11:20:57 -0000 1.16 *************** *** 119,122 **** --- 119,128 ---- + TestPtr CPPUT_API makeTestCase( void (*run)(), + const std::string &name ) + { + return TestPtr( new TestCase( CppTL::cfn0(run), name ) ); + } + TestPtr makeTestCase( const CppTL::Functor0 &run, |