My Project
Loading...
Searching...
No Matches
TestListener.h
Go to the documentation of this file.
1#ifndef __cxxtest__TestListener_h__
2#define __cxxtest__TestListener_h__
3
4//
5// TestListener is the base class for all "listeners",
6// i.e. classes that receive notifications of the
7// testing process.
8//
9// The names of the parameters are in comments to avoid
10// "unused parameter" warnings.
11//
12
14
15namespace CxxTest
16{
18 {
19 public:
21 virtual ~TestListener() {}
22
23 virtual void enterWorld( const WorldDescription & /*desc*/ ) {}
24 virtual void enterSuite( const SuiteDescription & /*desc*/ ) {}
25 virtual void enterTest( const TestDescription & /*desc*/ ) {}
26 virtual void trace( const char * /*file*/, unsigned /*line*/,
27 const char * /*expression*/ ) {}
28 virtual void warning( const char * /*file*/, unsigned /*line*/,
29 const char * /*expression*/ ) {}
30 virtual void failedTest( const char * /*file*/, unsigned /*line*/,
31 const char * /*expression*/ ) {}
32 virtual void failedAssert( const char * /*file*/, unsigned /*line*/,
33 const char * /*expression*/ ) {}
34 virtual void failedAssertEquals( const char * /*file*/, unsigned /*line*/,
35 const char * /*xStr*/, const char * /*yStr*/,
36 const char * /*x*/, const char * /*y*/ ) {}
37 virtual void failedAssertSameData( const char * /*file*/, unsigned /*line*/,
38 const char * /*xStr*/, const char * /*yStr*/,
39 const char * /*sizeStr*/, const void * /*x*/,
40 const void * /*y*/, unsigned /*size*/ ) {}
41 virtual void failedAssertDelta( const char * /*file*/, unsigned /*line*/,
42 const char * /*xStr*/, const char * /*yStr*/,
43 const char * /*dStr*/, const char * /*x*/,
44 const char * /*y*/, const char * /*d*/ ) {}
45 virtual void failedAssertDiffers( const char * /*file*/, unsigned /*line*/,
46 const char * /*xStr*/, const char * /*yStr*/,
47 const char * /*value*/ ) {}
48 virtual void failedAssertLessThan( const char * /*file*/, unsigned /*line*/,
49 const char * /*xStr*/, const char * /*yStr*/,
50 const char * /*x*/, const char * /*y*/ ) {}
51 virtual void failedAssertLessThanEquals( const char * /*file*/, unsigned /*line*/,
52 const char * /*xStr*/, const char * /*yStr*/,
53 const char * /*x*/, const char * /*y*/ ) {}
54 virtual void failedAssertPredicate( const char * /*file*/, unsigned /*line*/,
55 const char * /*predicate*/, const char * /*xStr*/, const char * /*x*/ ) {}
56 virtual void failedAssertRelation( const char * /*file*/, unsigned /*line*/,
57 const char * /*relation*/, const char * /*xStr*/, const char * /*yStr*/,
58 const char * /*x*/, const char * /*y*/ ) {}
59 virtual void failedAssertThrows( const char * /*file*/, unsigned /*line*/,
60 const char * /*expression*/, const char * /*type*/,
61 bool /*otherThrown*/ ) {}
62 virtual void failedAssertThrowsNot( const char * /*file*/, unsigned /*line*/,
63 const char * /*expression*/ ) {}
64 virtual void leaveTest( const TestDescription & /*desc*/ ) {}
65 virtual void leaveSuite( const SuiteDescription & /*desc*/ ) {}
66 virtual void leaveWorld( const WorldDescription & /*desc*/ ) {}
67 };
68}
69
70#endif // __cxxtest__TestListener_h__
virtual void failedAssertLessThanEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:51
virtual void failedAssertDiffers(const char *, unsigned, const char *, const char *, const char *)
Definition: TestListener.h:45
virtual void failedAssertEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:34
virtual void trace(const char *, unsigned, const char *)
Definition: TestListener.h:26
virtual void leaveTest(const TestDescription &)
Definition: TestListener.h:64
virtual void failedAssertLessThan(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:48
virtual void failedAssert(const char *, unsigned, const char *)
Definition: TestListener.h:32
virtual void failedAssertDelta(const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *)
Definition: TestListener.h:41
virtual void failedAssertRelation(const char *, unsigned, const char *, const char *, const char *, const char *, const char *)
Definition: TestListener.h:56
virtual void failedTest(const char *, unsigned, const char *)
Definition: TestListener.h:30
virtual void failedAssertThrowsNot(const char *, unsigned, const char *)
Definition: TestListener.h:62
virtual void failedAssertThrows(const char *, unsigned, const char *, const char *, bool)
Definition: TestListener.h:59
virtual void enterWorld(const WorldDescription &)
Definition: TestListener.h:23
virtual void warning(const char *, unsigned, const char *)
Definition: TestListener.h:28
virtual void leaveWorld(const WorldDescription &)
Definition: TestListener.h:66
virtual void leaveSuite(const SuiteDescription &)
Definition: TestListener.h:65
virtual void failedAssertPredicate(const char *, unsigned, const char *, const char *, const char *)
Definition: TestListener.h:54
virtual void failedAssertSameData(const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned)
Definition: TestListener.h:37
virtual void enterSuite(const SuiteDescription &)
Definition: TestListener.h:24
virtual void enterTest(const TestDescription &)
Definition: TestListener.h:25