CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TestSuccessListener.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_TESTSUCCESSLISTENER_H 00002 #define CPPUNIT_TESTSUCCESSLISTENER_H 00003 00004 #include <cppunit/SynchronizedObject.h> 00005 #include <cppunit/TestListener.h> 00006 00007 00008 CPPUNIT_NS_BEGIN 00009 00010 00014 class CPPUNIT_API TestSuccessListener : public TestListener, 00015 public SynchronizedObject 00016 { 00017 public: 00020 TestSuccessListener( SynchronizationObject *syncObject = 0 ); 00021 00023 virtual ~TestSuccessListener(); 00024 00025 virtual void reset(); 00026 00027 void addFailure( const TestFailure &failure ); 00028 00030 virtual bool wasSuccessful() const; 00031 00032 private: 00033 bool m_success; 00034 }; 00035 00036 00037 CPPUNIT_NS_END 00038 00039 #endif // CPPUNIT_TESTSUCCESSLISTENER_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers