summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/TestSuiteFactory.h
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-29 13:09:16 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-29 13:09:16 +0000
commitb08ecaecc1e39b7b01e02b7b73559d8b34ff46a5 (patch)
treebf1ed1e3680cb0256e73336e22fb70c692524fcb /include/cppunit/extensions/TestSuiteFactory.h
parent5ce1a68589aa3ea4f9ee255cfecc94cc1730c6fa (diff)
downloadcppunit-b08ecaecc1e39b7b01e02b7b73559d8b34ff46a5.tar.gz
Merged Baptiste Lepilleurs CppUnitW 1.2.
Some differences: TypeInfo stuff (in TestSuite) compiled in only if USE_TYPEINFO is set. TestSuite.getTests now returns a const ref instead of taking a ref as param. Removed auto_ptr stuff from TestFactoryRegistry: auto_ptr cannot be used in containers.
Diffstat (limited to 'include/cppunit/extensions/TestSuiteFactory.h')
-rw-r--r--include/cppunit/extensions/TestSuiteFactory.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/cppunit/extensions/TestSuiteFactory.h b/include/cppunit/extensions/TestSuiteFactory.h
new file mode 100644
index 0000000..b438fe4
--- /dev/null
+++ b/include/cppunit/extensions/TestSuiteFactory.h
@@ -0,0 +1,25 @@
+#ifndef CPPUNIT_TESTSUITEFACTORY_H
+#define CPPUNIT_TESTSUITEFACTORY_H
+
+#ifndef CPPUNIT_ABSTRACTTESTFACTORY_H
+#include "AbstractTestFactory.h"
+#endif
+
+
+namespace CppUnit {
+
+ class Test;
+
+ template<class TestCaseType>
+ class TestSuiteFactory : public AbstractTestFactory
+ {
+ public:
+ virtual Test *makeTest()
+ {
+ return TestCaseType::suite();
+ }
+ };
+
+} // namespace CppUnit
+
+#endif // CPPUNIT_TESTSUITEFACTORY_H