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