Loading...
Searching...
No Matches
DummyDescriptions.h
Go to the documentation of this file.
#ifndef __cxxtest__DummyDescriptions_h__
#define __cxxtest__DummyDescriptions_h__
//
// DummyTestDescription, DummySuiteDescription and DummyWorldDescription
//
#include <cxxtest/Descriptions.h>
namespace CxxTest
{
class DummyTestDescription : public TestDescription
{
public:
DummyTestDescription();
const char *file() const;
unsigned line() const;
const char *testName() const;
const char *suiteName() const;
bool setUp();
void run();
bool tearDown();
TestDescription *next();
const TestDescription *next() const;
};
class DummySuiteDescription : public SuiteDescription
{
public:
DummySuiteDescription();
const char *file() const;
unsigned line() const;
const char *suiteName() const;
TestSuite *suite() const;
unsigned numTests() const;
const TestDescription &testDescription( unsigned ) const;
SuiteDescription *next();
TestDescription *firstTest();
const SuiteDescription *next() const;
const TestDescription *firstTest() const;
void activateAllTests();
bool leaveOnly( const char * /*testName*/ );
bool setUp();
bool tearDown();
private:
DummyTestDescription _test;
};
class DummyWorldDescription : public WorldDescription
{
public:
DummyWorldDescription();
unsigned numSuites( void ) const;
unsigned numTotalTests( void ) const;
const SuiteDescription &suiteDescription( unsigned ) const;
SuiteDescription *firstSuite();
const SuiteDescription *firstSuite() const;
void activateAllTests();
bool leaveOnly( const char * /*suiteName*/, const char * /*testName*/ = 0 );
bool setUp();
bool tearDown();
private:
DummySuiteDescription _suite;
};
}
#endif // __cxxtest__DummyDescriptions_h__
Descriptions.h
CxxTest::DummySuiteDescription
Definition DummyDescriptions.h:30
CxxTest::DummySuiteDescription::DummySuiteDescription
DummySuiteDescription()
Definition DummyDescriptions.cpp:18
CxxTest::DummySuiteDescription::firstTest
TestDescription * firstTest()
Definition DummyDescriptions.cpp:27
CxxTest::DummySuiteDescription::testDescription
const TestDescription & testDescription(unsigned) const
Definition DummyDescriptions.cpp:25
CxxTest::DummySuiteDescription::_test
DummyTestDescription _test
Definition DummyDescriptions.h:51
CxxTest::DummySuiteDescription::next
SuiteDescription * next()
Definition DummyDescriptions.cpp:26
CxxTest::DummySuiteDescription::line
unsigned line() const
Definition DummyDescriptions.cpp:21
CxxTest::DummySuiteDescription::setUp
bool setUp()
Definition DummyDescriptions.cpp:33
CxxTest::DummySuiteDescription::leaveOnly
bool leaveOnly(const char *)
Definition DummyDescriptions.cpp:31
CxxTest::DummySuiteDescription::suite
TestSuite * suite() const
Definition DummyDescriptions.cpp:23
CxxTest::DummySuiteDescription::numTests
unsigned numTests() const
Definition DummyDescriptions.cpp:24
CxxTest::DummySuiteDescription::file
const char * file() const
Definition DummyDescriptions.cpp:20
CxxTest::DummySuiteDescription::activateAllTests
void activateAllTests()
Definition DummyDescriptions.cpp:30
CxxTest::DummySuiteDescription::suiteName
const char * suiteName() const
Definition DummyDescriptions.cpp:22
CxxTest::DummySuiteDescription::tearDown
bool tearDown()
Definition DummyDescriptions.cpp:34
CxxTest::DummyTestDescription
Definition DummyDescriptions.h:13
CxxTest::DummyTestDescription::setUp
bool setUp()
Definition DummyDescriptions.cpp:11
CxxTest::DummyTestDescription::suiteName
const char * suiteName() const
Definition DummyDescriptions.cpp:10
CxxTest::DummyTestDescription::file
const char * file() const
Definition DummyDescriptions.cpp:7
CxxTest::DummyTestDescription::line
unsigned line() const
Definition DummyDescriptions.cpp:8
CxxTest::DummyTestDescription::tearDown
bool tearDown()
Definition DummyDescriptions.cpp:13
CxxTest::DummyTestDescription::run
void run()
Definition DummyDescriptions.cpp:12
CxxTest::DummyTestDescription::next
TestDescription * next()
Definition DummyDescriptions.cpp:15
CxxTest::DummyTestDescription::DummyTestDescription
DummyTestDescription()
Definition DummyDescriptions.cpp:5
CxxTest::DummyTestDescription::testName
const char * testName() const
Definition DummyDescriptions.cpp:9
CxxTest::DummyWorldDescription::numSuites
unsigned numSuites(void) const
Definition DummyDescriptions.cpp:38
CxxTest::DummyWorldDescription::setUp
bool setUp()
Definition DummyDescriptions.cpp:46
CxxTest::DummyWorldDescription::numTotalTests
unsigned numTotalTests(void) const
Definition DummyDescriptions.cpp:39
CxxTest::DummyWorldDescription::firstSuite
SuiteDescription * firstSuite()
Definition DummyDescriptions.cpp:41
CxxTest::DummyWorldDescription::DummyWorldDescription
DummyWorldDescription()
Definition DummyDescriptions.cpp:36
CxxTest::DummyWorldDescription::suiteDescription
const SuiteDescription & suiteDescription(unsigned) const
Definition DummyDescriptions.cpp:40
CxxTest::DummyWorldDescription::activateAllTests
void activateAllTests()
Definition DummyDescriptions.cpp:43
CxxTest::DummyWorldDescription::leaveOnly
bool leaveOnly(const char *, const char *=0)
Definition DummyDescriptions.cpp:44
CxxTest::DummyWorldDescription::_suite
DummySuiteDescription _suite
Definition DummyDescriptions.h:71
CxxTest::DummyWorldDescription::tearDown
bool tearDown()
Definition DummyDescriptions.cpp:47
CxxTest::SuiteDescription
Definition Descriptions.h:32
CxxTest::TestDescription
Definition Descriptions.h:16
CxxTest::TestSuite
Definition TestSuite.h:22
CxxTest::WorldDescription
Definition Descriptions.h:54
CxxTest
Definition Descriptions.cpp:7