~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/include/cppunit/extensions/RepeatedTest.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_REPEATEDTEST_H
2
 
#define CPPUNIT_EXTENSIONS_REPEATEDTEST_H
3
 
 
4
 
#include <cppunit/Portability.h>
5
 
#include <cppunit/extensions/TestDecorator.h>
6
 
 
7
 
CPPUNIT_NS_BEGIN
8
 
 
9
 
 
10
 
class Test;
11
 
class TestResult;
12
 
 
13
 
 
14
 
/*! \brief Decorator that runs a test repeatedly.
15
 
 *
16
 
 * Does not assume ownership of the test it decorates
17
 
 */
18
 
class CPPUNIT_API RepeatedTest : public TestDecorator 
19
 
{
20
 
public:
21
 
  RepeatedTest( Test *test, 
22
 
                int timesRepeat ) : 
23
 
      TestDecorator( test ), 
24
 
      m_timesRepeat(timesRepeat) 
25
 
  {
26
 
  }
27
 
 
28
 
  void run( TestResult *result );
29
 
 
30
 
  int countTestCases() const;
31
 
 
32
 
private:
33
 
  RepeatedTest( const RepeatedTest & );
34
 
  void operator=( const RepeatedTest & );
35
 
 
36
 
  const int m_timesRepeat;
37
 
};
38
 
 
39
 
 
40
 
CPPUNIT_NS_END
41
 
 
42
 
 
43
 
#endif // CPPUNIT_EXTENSIONS_REPEATEDTEST_H