CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TestListener.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_TESTLISTENER_H    // -*- C++ -*-
00002 #define CPPUNIT_TESTLISTENER_H
00003 
00004 #include <cppunit/Portability.h>
00005 
00006 
00007 CPPUNIT_NS_BEGIN
00008 
00009 
00010 class Exception;
00011 class Test;
00012 class TestFailure;
00013 class TestResult;
00014 
00015 
00094 class CPPUNIT_API TestListener
00095 {
00096 public:
00097   virtual ~TestListener() {}
00098   
00100   virtual void startTest( Test * /*test*/ ) {}
00101 
00107   virtual void addFailure( const TestFailure & /*failure*/ ) {}
00108 
00110   virtual void endTest( Test * /*test*/ ) {}
00111 
00114   virtual void startSuite( Test * /*suite*/ ) {}
00115 
00118   virtual void endSuite( Test * /*suite*/ ) {}
00119 
00128   virtual void startTestRun( Test * /*test*/, 
00129                              TestResult * /*eventManager*/ ) {}
00130 
00139   virtual void endTestRun( Test * /*test*/, 
00140                            TestResult * /*eventManager*/ ) {}
00141 };
00142 
00143 
00144 CPPUNIT_NS_END
00145 
00146 #endif // CPPUNIT_TESTLISTENER_H
00147 
00148 

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers