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
26 #if CPPUNIT_NEED_DLL_DECL
70 virtual bool shouldStop()
const;
73 virtual void startTest(
Test *test );
87 virtual void endTest(
Test *test );
90 virtual void startSuite(
Test *test );
93 virtual void endSuite(
Test *test );
99 virtual void runTest(
Test *test );
116 virtual bool protect(
const Functor &functor,
118 const std::string &shortDescription = std::string(
"") );
121 virtual void pushProtector(
Protector *protector );
124 virtual void popProtector();
131 virtual void startTestRun(
Test *test );
132 virtual void endTestRun(
Test *test );
149 #if CPPUNIT_NEED_DLL_DECL
150 #pragma warning( pop )
153 #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:50
TestListeners m_listeners
Definition: TestResult.h:136
ProtectorChain * m_protectorChain
Definition: TestResult.h:137
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:138
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:135
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