diff options
Diffstat (limited to 'include/cppunit/extensions/TestFactory.h')
| -rw-r--r-- | include/cppunit/extensions/TestFactory.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cppunit/extensions/TestFactory.h b/include/cppunit/extensions/TestFactory.h new file mode 100644 index 0000000..a648243 --- /dev/null +++ b/include/cppunit/extensions/TestFactory.h @@ -0,0 +1,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 |
