CppUnit project page
FAQ
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
cppunit
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
CPPUNIT_NS_BEGIN
8
9
class
Test
;
10
class
TestResult
;
11
12
17
class
CPPUNIT_API
ProtectorContext
18
{
19
public
:
20
ProtectorContext
(
Test
*test,
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
:
31
ProtectorContext
(
const
ProtectorContext
& );
33
ProtectorContext
& operator=(
const
ProtectorContext
&);
34
35
public
:
36
Test
*
m_test
;
37
TestResult
*
m_result
;
38
std::string
m_shortDescription
;
39
};
40
41
42
CPPUNIT_NS_END
43
44
#endif // CPPUNIT_PROTECTORCONTEXT_H
45
Send comments to:
CppUnit Developers