TextTestResult.h 916 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef CPPUNIT_TEXTTESTRESULT_H
  2. #define CPPUNIT_TEXTTESTRESULT_H
  3. #include <cppunit/TestResult.h>
  4. #include <cppunit/TestResultCollector.h>
  5. #include <cppunit/portability/Stream.h>
  6. CPPUNIT_NS_BEGIN
  7. class SourceLine;
  8. class Exception;
  9. class Test;
  10. /*! \brief Holds printable test result (DEPRECATED).
  11. * \ingroup TrackingTestExecution
  12. *
  13. * deprecated Use class TextTestProgressListener and TextOutputter instead.
  14. */
  15. class CPPUNIT_API TextTestResult : public TestResult,
  16. public TestResultCollector
  17. {
  18. public:
  19. TextTestResult();
  20. virtual void addFailure( const TestFailure &failure );
  21. virtual void startTest( Test *test );
  22. virtual void print( OStream &stream );
  23. };
  24. /** insertion operator for easy output */
  25. CPPUNIT_API OStream &operator <<( OStream &stream,
  26. TextTestResult &result );
  27. CPPUNIT_NS_END
  28. #endif // CPPUNIT_TEXTTESTRESULT_H