source: trunk/contrib/cppunit-1.12.2/include/cppunit/BriefTestProgressListener.h @ 876

Last change on this file since 876 was 876, checked in by sam, 9 years ago

contrib: add a precompiled Win32 version of CppUnit and update build system
accordingly.

File size: 935 bytes
Line 
1#ifndef CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
2#define CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
3
4#include <cppunit/TestListener.h>
5
6
7CPPUNIT_NS_BEGIN
8
9
10/*! \brief TestListener that prints the name of each test before running it.
11 * \ingroup TrackingTestExecution
12 */
13class CPPUNIT_API BriefTestProgressListener : public TestListener
14{
15public:
16  /*! Constructs a BriefTestProgressListener object.
17   */
18  BriefTestProgressListener();
19
20  /// Destructor.
21  virtual ~BriefTestProgressListener();
22
23  void startTest( Test *test );
24
25  void addFailure( const TestFailure &failure );
26
27  void endTest( Test *test );
28
29private:
30  /// Prevents the use of the copy constructor.
31  BriefTestProgressListener( const BriefTestProgressListener &copy );
32
33  /// Prevents the use of the copy operator.
34  void operator =( const BriefTestProgressListener &copy );
35
36private:
37  bool m_lastTestFailed;
38};
39
40
41CPPUNIT_NS_END
42
43#endif  // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
Note: See TracBrowser for help on using the repository browser.