CppUnit project page | FAQ |
00001 #ifndef CPPUNIT_TEXTTESTRESULT_H 00002 #define CPPUNIT_TEXTTESTRESULT_H 00003 00004 #include <cppunit/TestResult.h> 00005 #include <cppunit/TestResultCollector.h> 00006 #include <cppunit/portability/Stream.h> 00007 00008 CPPUNIT_NS_BEGIN 00009 00010 00011 class SourceLine; 00012 class Exception; 00013 class Test; 00014 00020 class CPPUNIT_API TextTestResult : public TestResult, 00021 public TestResultCollector 00022 { 00023 public: 00024 TextTestResult(); 00025 00026 virtual void addFailure( const TestFailure &failure ); 00027 virtual void startTest( Test *test ); 00028 virtual void print( OStream &stream ); 00029 00030 using TestResult::addFailure; 00031 }; 00032 00034 CPPUNIT_API OStream &operator <<( OStream &stream, 00035 TextTestResult &result ); 00036 00037 CPPUNIT_NS_END 00038 00039 #endif // CPPUNIT_TEXTTESTRESULT_H 00040 00041
Send comments to: CppUnit Developers |