~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/src/cppunit/TextTestProgressListener.cpp

  • 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
 
#include <cppunit/TestFailure.h>
2
 
#include <cppunit/TextTestProgressListener.h>
3
 
#include <cppunit/portability/Stream.h>
4
 
 
5
 
 
6
 
CPPUNIT_NS_BEGIN
7
 
 
8
 
 
9
 
TextTestProgressListener::TextTestProgressListener()
10
 
{
11
 
}
12
 
 
13
 
 
14
 
TextTestProgressListener::~TextTestProgressListener()
15
 
{
16
 
}
17
 
 
18
 
 
19
 
void 
20
 
TextTestProgressListener::startTest( Test *test )
21
 
{
22
 
  stdCOut() << ".";
23
 
}
24
 
 
25
 
 
26
 
void 
27
 
TextTestProgressListener::addFailure( const TestFailure &failure )
28
 
{
29
 
  stdCOut() << ( failure.isError() ? "E" : "F" );
30
 
}
31
 
 
32
 
 
33
 
void 
34
 
TextTestProgressListener::endTestRun( Test *test, 
35
 
                                      TestResult *eventManager )
36
 
{
37
 
  stdCOut()  <<  "\n";
38
 
  stdCOut().flush();
39
 
}
40
 
 
41
 
 
42
 
CPPUNIT_NS_END
43