summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/TestFactory.h
blob: 3a964b6fccf01348fb6820551290b67d00907641 (plain)
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
#ifndef CPPUNIT_EXTENSIONS_TESTFACTORY_H
#define CPPUNIT_EXTENSIONS_TESTFACTORY_H

#include <cppunit/Portability.h>

namespace CppUnit {

class Test;

/*! \brief Abstract Test factory.
 */
class CPPUNIT_API TestFactory 
{
public:
  virtual ~TestFactory() {}

  /*! Makes a new test.
   * \return A new Test.
   */
  virtual Test* makeTest() = 0;
};

}  // namespace CppUnit

#endif  // CPPUNIT_EXTENSIONS_TESTFACTORY_H