CppUnit project page | FAQ |
00001 #ifndef CPPUNIT_PROTECTORCONTEXT_H 00002 #define CPPUNIT_PROTECTORCONTEXT_H 00003 00004 #include <cppunit/Portability.h> 00005 #include <string> 00006 00007 CPPUNIT_NS_BEGIN 00008 00009 class Test; 00010 class TestResult; 00011 00012 00017 class CPPUNIT_API ProtectorContext 00018 { 00019 public: 00020 ProtectorContext( Test *test, 00021 TestResult *result, 00022 const std::string &shortDescription ) 00023 : m_test( test ) 00024 , m_result( result ) 00025 , m_shortDescription( shortDescription ) 00026 { 00027 } 00028 00029 private: 00031 ProtectorContext( const ProtectorContext& ); 00033 ProtectorContext& operator=(const ProtectorContext&); 00034 00035 public: 00036 Test *m_test; 00037 TestResult *m_result; 00038 std::string m_shortDescription; 00039 }; 00040 00041 00042 CPPUNIT_NS_END 00043 00044 #endif // CPPUNIT_PROTECTORCONTEXT_H 00045
Send comments to: CppUnit Developers |