summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/TestFactory.h
blob: a6482430222415cbd94d56a9c1706a016d860924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CPPUNIT_EXTENSIONS_TESTFACTORY_H
#define CPPUNIT_EXTENSIONS_TESTFACTORY_H

namespace CppUnit {

  class Test;

  /** This class represents an abstract Test factory.
   */
  class TestFactory 
  {
  public:
    virtual ~TestFactory() {}

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

}  // namespace CppUnit

#endif  // CPPUNIT_EXTENSIONS_ABSTRACTTESTFACTORY_H