diff options
Diffstat (limited to 'examples/cppunittest/MockTestCase.cpp')
| -rw-r--r-- | examples/cppunittest/MockTestCase.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/cppunittest/MockTestCase.cpp b/examples/cppunittest/MockTestCase.cpp index 6561ff4..84f10dd 100644 --- a/examples/cppunittest/MockTestCase.cpp +++ b/examples/cppunittest/MockTestCase.cpp @@ -1,5 +1,6 @@ #include "FailureException.h" #include "MockTestCase.h" +#include <cppunit/TestPath.h> MockTestCase::MockTestCase( std::string name ) @@ -19,6 +20,7 @@ MockTestCase::MockTestCase( std::string name ) , m_setUpThrow( false ) , m_tearDownThrow( false ) , m_runTestThrow( false ) + , m_passingTest( NULL ) { } @@ -85,6 +87,20 @@ MockTestCase::runTest() throw FailureException(); } +/* +bool +MockTestCase::findTestPath( const CppUnit::Test *test, + CppUnit::TestPath &testPath ) +{ + if ( m_passingTest == test ) + { + testPath.add( this ); + return true; + } + + return false; +} +*/ void MockTestCase::setExpectedSetUpCall( int callCount ) |
