From b08ecaecc1e39b7b01e02b7b73559d8b34ff46a5 Mon Sep 17 00:00:00 2001 From: Bastiaan Bakker Date: Sun, 29 Apr 2001 13:09:16 +0000 Subject: 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. --- include/cppunit/extensions/AbstractTestFactory.h | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/cppunit/extensions/AbstractTestFactory.h (limited to 'include/cppunit/extensions/AbstractTestFactory.h') diff --git a/include/cppunit/extensions/AbstractTestFactory.h b/include/cppunit/extensions/AbstractTestFactory.h new file mode 100644 index 0000000..14a27c8 --- /dev/null +++ b/include/cppunit/extensions/AbstractTestFactory.h @@ -0,0 +1,25 @@ +#ifndef CPPUNIT_ABSTRACTTESTFACTORY_H +#define CPPUNIT_ABSTRACTTESTFACTORY_H + + + +namespace CppUnit { + + class Test; + + /** This class represents an abstract Test factory. + */ + class AbstractTestFactory + { + public: + virtual ~AbstractTestFactory() {} + + /** Makes a new test. + * \return A new Test. + */ + virtual Test *makeTest() =0; + }; + +} // namespace CppUnit + +#endif // CPPUNIT_ABSTRACTTESTFACTORY_H -- cgit v1.2.1