xref: /haiku/headers/tools/cppunit/cppunit/TextTestProgressListener.h (revision 52a380120846174213ccce9c4aab0dda17c72083)
1 #ifndef CPPUNIT_TEXTTESTPROGRESSLISTENER_H
2 #define CPPUNIT_TEXTTESTPROGRESSLISTENER_H
3 
4 #include <cppunit/TestListener.h>
5 
6 
7 namespace CppUnit
8 {
9 
10 /*!
11  * \brief TestListener that show the status of each TestCase test result.
12  * \ingroup TrackingTestExecution
13  */
14 class CPPUNIT_API TextTestProgressListener : public TestListener
15 {
16 public:
17   /*! Constructs a TextTestProgressListener object.
18    */
19   TextTestProgressListener();
20 
21   /// Destructor.
22   virtual ~TextTestProgressListener();
23 
24   void startTest( Test *test );
25   void addFailure( const TestFailure &failure );
26 
27   void done();
28 
29 private:
30   /// Prevents the use of the copy constructor.
31   TextTestProgressListener( const TextTestProgressListener &copy );
32 
33   /// Prevents the use of the copy operator.
34   void operator =( const TextTestProgressListener &copy );
35 
36 private:
37 };
38 
39 
40 } //  namespace CppUnit
41 
42 
43 #endif  // CPPUNIT_TEXTTESTPROGRESSLISTENER_H
44