~ubuntu-branches/ubuntu/quantal/psi/quantal

« 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: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

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