Menu

[r344]: / trunk / cppunit / include / cppunit / Protector.h  Maximize  Restore  History

Download this file

39 lines (25 with data), 641 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef CPPUNIT_PROTECTOR_H
#define CPPUNIT_PROTECTOR_H
#include <cppunit/Portability.h>
CPPUNIT_NS_BEGIN
class Message;
class ProtectorContext;
class CPPUNIT_API Functor
{
public:
virtual ~Functor();
virtual bool operator()() const =0;
};
class CPPUNIT_API Protector
{
public:
virtual ~Protector();
virtual bool protect( const Functor &functor,
const ProtectorContext &context ) =0;
protected:
void reportTestFailure( const Message &message,
const ProtectorContext &context,
bool isError );
};
CPPUNIT_NS_END
#endif // CPPUNIT_PROTECTOR_H
MongoDB Logo MongoDB