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

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/include/cppunit/extensions/TestDecorator.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_EXTENSIONS_TESTDECORATOR_H
2
 
#define CPPUNIT_EXTENSIONS_TESTDECORATOR_H
3
 
 
4
 
#include <cppunit/Portability.h>
5
 
#include <cppunit/Test.h>
6
 
 
7
 
CPPUNIT_NS_BEGIN
8
 
 
9
 
 
10
 
class TestResult;
11
 
 
12
 
 
13
 
/*! \brief  Decorator for Tests.
14
 
 *
15
 
 * TestDecorator provides an alternate means to extend functionality
16
 
 * of a test class without subclassing the test.  Instead, one can
17
 
 * subclass the decorater and use it to wrap the test class.
18
 
 *
19
 
 * Does not assume ownership of the test it decorates
20
 
 */ 
21
 
class CPPUNIT_API TestDecorator : public Test
22
 
{
23
 
public:
24
 
  TestDecorator( Test *test );
25
 
  ~TestDecorator();
26
 
 
27
 
  int countTestCases() const;
28
 
 
29
 
  std::string getName() const;
30
 
 
31
 
  void run( TestResult *result );
32
 
 
33
 
  int getChildTestCount() const;
34
 
 
35
 
protected:
36
 
  Test *doGetChildTestAt( int index ) const;
37
 
 
38
 
  Test *m_test;
39
 
 
40
 
private:
41
 
  TestDecorator( const TestDecorator &);
42
 
  void operator =( const TestDecorator & );
43
 
};
44
 
 
45
 
 
46
 
CPPUNIT_NS_END
47
 
 
48
 
#endif
49