Loading...
Searching...
No Matches
TestListener.h
Go to the documentation of this file.
#ifndef __cxxtest__TestListener_h__
#define __cxxtest__TestListener_h__
//
// TestListener is the base class for all "listeners",
// i.e. classes that receive notifications of the
// testing process.
//
// The names of the parameters are in comments to avoid
// "unused parameter" warnings.
//
#include <cxxtest/Descriptions.h>
namespace CxxTest
{
class TestListener
{
public:
TestListener() {}
virtual ~TestListener() {}
virtual void enterWorld( const WorldDescription & /*desc*/ ) {}
virtual void enterSuite( const SuiteDescription & /*desc*/ ) {}
virtual void enterTest( const TestDescription & /*desc*/ ) {}
virtual void trace( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/ ) {}
virtual void warning( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/ ) {}
virtual void failedTest( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/ ) {}
virtual void failedAssert( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/ ) {}
virtual void failedAssertEquals( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*x*/, const char * /*y*/ ) {}
virtual void failedAssertSameData( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*sizeStr*/, const void * /*x*/,
const void * /*y*/, unsigned /*size*/ ) {}
virtual void failedAssertDelta( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*dStr*/, const char * /*x*/,
const char * /*y*/, const char * /*d*/ ) {}
virtual void failedAssertDiffers( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*value*/ ) {}
virtual void failedAssertLessThan( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*x*/, const char * /*y*/ ) {}
virtual void failedAssertLessThanEquals( const char * /*file*/, unsigned /*line*/,
const char * /*xStr*/, const char * /*yStr*/,
const char * /*x*/, const char * /*y*/ ) {}
virtual void failedAssertPredicate( const char * /*file*/, unsigned /*line*/,
const char * /*predicate*/, const char * /*xStr*/, const char * /*x*/ ) {}
virtual void failedAssertRelation( const char * /*file*/, unsigned /*line*/,
const char * /*relation*/, const char * /*xStr*/, const char * /*yStr*/,
const char * /*x*/, const char * /*y*/ ) {}
virtual void failedAssertThrows( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/, const char * /*type*/,
bool /*otherThrown*/ ) {}
virtual void failedAssertThrowsNot( const char * /*file*/, unsigned /*line*/,
const char * /*expression*/ ) {}
virtual void leaveTest( const TestDescription & /*desc*/ ) {}
virtual void leaveSuite( const SuiteDescription & /*desc*/ ) {}
virtual void leaveWorld( const WorldDescription & /*desc*/ ) {}
};
}
#endif // __cxxtest__TestListener_h__
Descriptions.h
CxxTest::SuiteDescription
Definition Descriptions.h:32
CxxTest::TestDescription
Definition Descriptions.h:16
CxxTest::TestListener::failedAssertLessThanEquals
virtual void failedAssertLessThanEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition TestListener.h:51
CxxTest::TestListener::failedAssertDiffers
virtual void failedAssertDiffers(const char *, unsigned, const char *, const char *, const char *)
Definition TestListener.h:45
CxxTest::TestListener::failedAssertEquals
virtual void failedAssertEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition TestListener.h:34
CxxTest::TestListener::trace
virtual void trace(const char *, unsigned, const char *)
Definition TestListener.h:26
CxxTest::TestListener::leaveTest
virtual void leaveTest(const TestDescription &)
Definition TestListener.h:64
CxxTest::TestListener::~TestListener
virtual ~TestListener()
Definition TestListener.h:21
CxxTest::TestListener::failedAssertLessThan
virtual void failedAssertLessThan(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition TestListener.h:48
CxxTest::TestListener::failedAssert
virtual void failedAssert(const char *, unsigned, const char *)
Definition TestListener.h:32
CxxTest::TestListener::failedAssertDelta
virtual void failedAssertDelta(const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *)
Definition TestListener.h:41
CxxTest::TestListener::failedAssertRelation
virtual void failedAssertRelation(const char *, unsigned, const char *, const char *, const char *, const char *, const char *)
Definition TestListener.h:56
CxxTest::TestListener::failedTest
virtual void failedTest(const char *, unsigned, const char *)
Definition TestListener.h:30
CxxTest::TestListener::failedAssertThrowsNot
virtual void failedAssertThrowsNot(const char *, unsigned, const char *)
Definition TestListener.h:62
CxxTest::TestListener::failedAssertThrows
virtual void failedAssertThrows(const char *, unsigned, const char *, const char *, bool)
Definition TestListener.h:59
CxxTest::TestListener::enterWorld
virtual void enterWorld(const WorldDescription &)
Definition TestListener.h:23
CxxTest::TestListener::warning
virtual void warning(const char *, unsigned, const char *)
Definition TestListener.h:28
CxxTest::TestListener::leaveWorld
virtual void leaveWorld(const WorldDescription &)
Definition TestListener.h:66
CxxTest::TestListener::leaveSuite
virtual void leaveSuite(const SuiteDescription &)
Definition TestListener.h:65
CxxTest::TestListener::failedAssertPredicate
virtual void failedAssertPredicate(const char *, unsigned, const char *, const char *, const char *)
Definition TestListener.h:54
CxxTest::TestListener::TestListener
TestListener()
Definition TestListener.h:20
CxxTest::TestListener::failedAssertSameData
virtual void failedAssertSameData(const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned)
Definition TestListener.h:37
CxxTest::TestListener::enterSuite
virtual void enterSuite(const SuiteDescription &)
Definition TestListener.h:24
CxxTest::TestListener::enterTest
virtual void enterTest(const TestDescription &)
Definition TestListener.h:25
CxxTest::WorldDescription
Definition Descriptions.h:54
CxxTest
Definition Descriptions.cpp:7