~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/src/cppunit/ProtectorContext.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
13
 
/*! \brief Protector context (Implementation).
14
 
 * Implementation detail.
15
 
 * \internal Context use to report failure in Protector.
16
 
 */
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
 
  Test *m_test;
30
 
  TestResult *m_result;
31
 
  std::string m_shortDescription;
32
 
};
33
 
 
34
 
 
35
 
CPPUNIT_NS_END
36
 
 
37
 
#endif // CPPUNIT_PROTECTORCONTEXT_H
38