~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CPPUNIT_DEFAULTPROTECTOR_H
 
2
#define CPPUNIT_DEFAULTPROTECTOR_H
 
3
 
 
4
#include <cppunit/Protector.h>
 
5
 
 
6
CPPUNIT_NS_BEGIN
 
7
 
 
8
/*! \brief Default protector that catch all exceptions (Implementation).
 
9
 *
 
10
 * Implementation detail.
 
11
 * \internal This protector catch and generate a failure for the following
 
12
 * exception types:
 
13
 * - Exception
 
14
 * - std::exception
 
15
 * - ...
 
16
 */
 
17
class DefaultProtector : public Protector
 
18
{
 
19
public:
 
20
  bool protect( const Functor &functor,
 
21
                const ProtectorContext &context );
 
22
};
 
23
 
 
24
CPPUNIT_NS_END
 
25
 
 
26
#endif // CPPUNIT_DEFAULTPROTECTOR_H
 
27