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

#include <cppunit/extensions/TestFactory.h>

namespace CppUnit {

  class Test;

  template<typename TestCaseType>
    class TestSuiteFactory : public TestFactory
  {
  public:
    virtual Test *makeTest()
    {
      return TestCaseType::suite();
    }
  };

}  // namespace CppUnit

#endif  // CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H