CppUnit project page FAQ CppUnit home page

ProtectorContext.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_PROTECTORCONTEXT_H
2 #define CPPUNIT_PROTECTORCONTEXT_H
3 
4 #include <cppunit/Portability.h>
5 #include <string>
6 
8 
9 class Test;
10 class TestResult;
11 
12 
18 {
19 public:
21  TestResult *result,
22  const std::string &shortDescription )
23  : m_test( test )
24  , m_result( result )
25  , m_shortDescription( shortDescription )
26  {
27  }
28 
31  std::string m_shortDescription;
32 };
33 
34 
36 
37 #endif // CPPUNIT_PROTECTORCONTEXT_H
38 
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
ProtectorContext(Test *test, TestResult *result, const std::string &shortDescription)
Definition: ProtectorContext.h:20
std::string m_shortDescription
Definition: ProtectorContext.h:31
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
TestResult * m_result
Definition: ProtectorContext.h:30
Protector context (Implementation). Implementation detail.
Definition: ProtectorContext.h:17
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Test * m_test
Definition: ProtectorContext.h:29
#define CPPUNIT_API
Definition: CppUnitApi.h:27

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