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 
7 #if CPPUNIT_NEED_DLL_DECL
8 #pragma warning( push )
9 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
10 #endif
11 
13 
14 class Test;
15 class TestResult;
16 
17 
23 {
24 public:
26  TestResult *result,
27  const std::string &shortDescription )
28  : m_test( test )
29  , m_result( result )
30  , m_shortDescription( shortDescription )
31  {
32  }
33 
36  std::string m_shortDescription;
37 };
38 
39 
41 
42 #if CPPUNIT_NEED_DLL_DECL
43 #pragma warning( pop )
44 #endif
45 
46 #endif // CPPUNIT_PROTECTORCONTEXT_H
47 

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