1 #ifndef CPPUNIT_EXTENSIONS_TESTFACTORYREGISTRY_H 2 #define CPPUNIT_EXTENSIONS_TESTFACTORYREGISTRY_H 6 #if CPPUNIT_NEED_DLL_DECL 7 #pragma warning( push ) 8 #pragma warning( disable: 4251) // X needs to have dll-interface to be used by clients of class Z 133 void addRegistry(
const std::string &name );
148 static bool isValid();
155 void registerFactory(
const std::string &name,
163 typedef std::set<TestFactory *, std::less<TestFactory*> >
Factories;
172 #if CPPUNIT_NEED_DLL_DECL 173 #pragma warning( pop ) 177 #endif // CPPUNIT_EXTENSIONS_TESTFACTORYREGISTRY_H
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
std::string m_name
Definition: TestFactoryRegistry.h:166
Factories m_factories
Definition: TestFactoryRegistry.h:164
#define CPPUNIT_NS_END
Definition: Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
virtual Test * makeTest()=0
Registry for TestFactory.Notes that the registry DON'T assumes lifetime control for any registered te...
Definition: TestFactoryRegistry.h:75
std::set< TestFactory *, std::less< TestFactory * > > Factories
Definition: TestFactoryRegistry.h:163
Abstract Test factory.
Definition: TestFactory.h:13
A Composite of Tests.It runs a collection of test cases. Here is an example.
Definition: TestSuite.h:40
#define CPPUNIT_API
Definition: CppUnitApi.h:27