1 #include <cxxtest/DummyDescriptions.h>
3 namespace CxxTest
4 {
5 DummyTestDescription::DummyTestDescription() {}
7 const char *DummyTestDescription::file() const { return "<no file>"; }
8 unsigned DummyTestDescription::line() const { return 0; }
9 const char *DummyTestDescription::testName() const { return "<no test>"; }
10 const char *DummyTestDescription::suiteName() const { return "<no suite>"; }
11 bool DummyTestDescription::setUp() { return true;}
12 void DummyTestDescription::run() {}
13 bool DummyTestDescription::tearDown() { return true;}
15 TestDescription *DummyTestDescription::next() { return 0; }
16 const TestDescription *DummyTestDescription::next() const { return 0; }
18 DummySuiteDescription::DummySuiteDescription() : _test() {}
20 const char *DummySuiteDescription::file() const { return "<no file>"; }
21 unsigned DummySuiteDescription::line() const { return 0; }
22 const char *DummySuiteDescription::suiteName() const { return "<no suite>"; }
23 TestSuite *DummySuiteDescription::suite() const { return 0; }
24 unsigned DummySuiteDescription::numTests() const { return 0; }
25 const TestDescription &DummySuiteDescription::testDescription( unsigned ) const { return _test; }
26 SuiteDescription *DummySuiteDescription::next() { return 0; }
27 TestDescription *DummySuiteDescription::firstTest() { return 0; }
28 const SuiteDescription *DummySuiteDescription::next() const { return 0; }
29 const TestDescription *DummySuiteDescription::firstTest() const { return 0; }
30 void DummySuiteDescription::activateAllTests() {}
31 bool DummySuiteDescription::leaveOnly( const char * /*testName*/ ) { return false; }
33 bool DummySuiteDescription::setUp() { return true;}
34 bool DummySuiteDescription::tearDown() { return true;}
36 DummyWorldDescription::DummyWorldDescription() : _suite() {}
38 unsigned DummyWorldDescription::numSuites( void ) const { return 0; }
39 unsigned DummyWorldDescription::numTotalTests( void ) const { return 0; }
40 const SuiteDescription &DummyWorldDescription::suiteDescription( unsigned ) const { return _suite; }
41 SuiteDescription *DummyWorldDescription::firstSuite() { return 0; }
42 const SuiteDescription *DummyWorldDescription::firstSuite() const { return 0; }
43 void DummyWorldDescription::activateAllTests() {}
44 bool DummyWorldDescription::leaveOnly( const char * /*suiteName*/, const char * /*testName*/ ) { return false; }
46 bool DummyWorldDescription::setUp() { return true;}
47 bool DummyWorldDescription::tearDown() { return true;}
48 }