1#ifndef CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
2#define CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
3
4#include <cppunit/extensions/TestFactory.h>
5
6namespace CppUnit {
7
8  class Test;
9
10  /*! \brief TestFactory for TestFixture that implements a static suite() method.
11   * \see AutoRegisterSuite.
12   */
13  template<typename TestCaseType>
14  class TestSuiteFactory : public TestFactory
15  {
16  public:
17    virtual Test *makeTest()
18    {
19      return TestCaseType::suite();
20    }
21  };
22
23}  // namespace CppUnit
24
25#endif  // CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
26