CppUnit project page | FAQ | CppUnit home page |
TestListener that checks if any test case failed. More...
#include <TestSuccessListener.h>
Public Member Functions | |
TestSuccessListener (SynchronizationObject *syncObject=0) | |
virtual | ~TestSuccessListener () |
Destructor. | |
virtual void | reset () |
void | addFailure (const TestFailure &failure) |
Called when a failure occurs while running a test. | |
virtual bool | wasSuccessful () const |
Returns whether the entire test was successful or not. | |
Private Attributes | |
bool | m_success |
TestListener that checks if any test case failed.
CPPUNIT_NS_BEGIN TestSuccessListener::TestSuccessListener | ( | SynchronizationObject * | syncObject = 0 | ) |
Constructs a TestSuccessListener object.
TestSuccessListener::~TestSuccessListener | ( | ) | [virtual] |
Destructor.
void TestSuccessListener::addFailure | ( | const TestFailure & | ) | [virtual] |
Called when a failure occurs while running a test.
Reimplemented from TestListener.
Reimplemented in TestResultCollector, and TextTestResult.
void TestSuccessListener::reset | ( | ) | [virtual] |
Reimplemented in TestResultCollector.
bool TestSuccessListener::wasSuccessful | ( | ) | const [virtual] |
Returns whether the entire test was successful or not.
bool TestSuccessListener::m_success [private] |
|
hosts this site. |
Send comments to: CppUnit Developers |