~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/include/cppunit/BriefTestProgressListener.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
2
 
#define CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
3
 
 
4
 
#include <cppunit/TestListener.h>
5
 
 
6
 
 
7
 
CPPUNIT_NS_BEGIN
8
 
 
9
 
 
10
 
/*! \brief TestListener that prints the name of each test before running it.
11
 
 * \ingroup TrackingTestExecution
12
 
 */
13
 
class CPPUNIT_API BriefTestProgressListener : public TestListener
14
 
{
15
 
public:
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
 
 
29
 
private:
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
 
 
36
 
private:
37
 
  bool m_lastTestFailed;
38
 
};
39
 
 
40
 
 
41
 
CPPUNIT_NS_END
42
 
 
43
 
#endif  // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H