1 #ifndef CPPUNIT_TESTRESULT_H 2 #define CPPUNIT_TESTRESULT_H 6 #if CPPUNIT_NEED_DLL_DECL 7 #pragma warning( push ) 8 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z 27 #if CPPUNIT_NEED_DLL_DECL 71 virtual bool shouldStop()
const;
74 virtual void startTest(
Test *test );
88 virtual void endTest(
Test *test );
91 virtual void startSuite(
Test *test );
94 virtual void endSuite(
Test *test );
100 virtual void runTest(
Test *test );
117 virtual bool protect(
const Functor &functor,
119 const std::string &shortDescription = std::string(
"") );
122 virtual void pushProtector(
Protector *protector );
125 virtual void popProtector();
132 virtual void startTestRun(
Test *test );
133 virtual void endTestRun(
Test *test );
150 #if CPPUNIT_NEED_DLL_DECL 151 #pragma warning( pop ) 154 #endif // CPPUNIT_TESTRESULT_H Exceptions thrown by failed assertions.Exception is an exception that serves descriptive strings thro...
Definition: Exception.h:19
Protects one or more test case run.
Definition: Protector.h:47
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:51
TestListeners m_listeners
Definition: TestResult.h:137
ProtectorChain * m_protectorChain
Definition: TestResult.h:138
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
Definition: Protector.h:14
bool m_stop
Definition: TestResult.h:139
Abstract synchronization object (mutex)
Definition: SynchronizedObject.h:27
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
Protector chain (Implementation). Implementation detail.
Definition: ProtectorChain.h:19
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Listener for test progress and result.Implementing the Observer pattern a TestListener may be registe...
Definition: TestListener.h:94
CppUnitDeque< TestListener * > TestListeners
Definition: TestResult.h:136
void operator=(const SynchronizedObject ©)
Prevents the use of the copy operator.
#define CPPUNIT_API
Definition: CppUnitApi.h:27
Base class for synchronized object.
Definition: SynchronizedObject.h:22