CppUnit project page FAQ

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 
29 private:
34 
35 public:
38  std::string m_shortDescription;
39 };
40 
41 
43 
44 #endif // CPPUNIT_PROTECTORCONTEXT_H
45 
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27
ProtectorContext::operator=
ProtectorContext & operator=(const ProtectorContext &)
disable assignment
ProtectorContext
Protector context (Implementation). Implementation detail.
Definition: ProtectorContext.h:18
ProtectorContext::m_shortDescription
std::string m_shortDescription
Definition: ProtectorContext.h:38
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
ProtectorContext::m_result
TestResult * m_result
Definition: ProtectorContext.h:37
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:106
Test
Base class for all test objects.
Definition: Test.h:26
TestResult
Manages TestListener.
Definition: TestResult.h:48
ProtectorContext::ProtectorContext
ProtectorContext(const ProtectorContext &)
disable copy construction
ProtectorContext::m_test
Test * m_test
Definition: ProtectorContext.h:36
Portability.h
ProtectorContext::ProtectorContext
ProtectorContext(Test *test, TestResult *result, const std::string &shortDescription)
Definition: ProtectorContext.h:20

Send comments to:
CppUnit Developers