Menu

[r260]: / trunk / cppunit / include / cppunit / TestSucessListener.h  Maximize  Restore  History

Download this file

41 lines (27 with data), 846 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CPPUNIT_TESTSUCESSLISTENER_H
#define CPPUNIT_TESTSUCESSLISTENER_H
#include <cppunit/SynchronizedObject.h>
#include <cppunit/TestListener.h>
namespace CppUnit
{
/*! \brief TestListener that checks if any test case failed.
* \ingroup TrackingTestExecution
*/
class CPPUNIT_API TestSucessListener : public TestListener,
public SynchronizedObject
{
public:
/*! Constructs a TestSucessListener object.
*/
TestSucessListener( SynchronizationObject *syncObject = 0 );
/// Destructor.
virtual ~TestSucessListener();
virtual void reset();
void addFailure( const TestFailure &failure );
/// Returns whether the entire test was successful or not.
virtual bool wasSuccessful() const;
private:
bool m_sucess;
};
} // namespace CppUnit
#endif // CPPUNIT_TESTSUCESSLISTENER_H
MongoDB Logo MongoDB