1 #ifndef CPPUNIT_PLUGIN_TESTPLUGINADAPTER
2 #define CPPUNIT_PLUGIN_TESTPLUGINADAPTER
4 #include <cppunit/Portability.h>
6 #if !defined(CPPUNIT_NO_TESTPLUGIN)
8 #include <cppunit/plugin/TestPlugIn.h>
10 #if CPPUNIT_NEED_DLL_DECL
11 #pragma warning( push )
12 #pragma warning( disable: 4251 4660 ) // X needs to have dll-interface to be used by clients of class Z
21 /*! \brief Default implementation of test plug-in interface.
22 * \ingroup WritingTestPlugIn
24 * Override getSuiteName() to specify the suite name. Default is "All Tests".
26 * CppUnitTestPlugIn::getTestSuite() returns a suite that contains
27 * all the test registered to the default test factory registry
28 * ( TestFactoryRegistry::getRegistry() ).
31 class CPPUNIT_API TestPlugInDefaultImpl : public CppUnitTestPlugIn
34 TestPlugInDefaultImpl();
36 virtual ~TestPlugInDefaultImpl();
38 void initialize( TestFactoryRegistry *registry,
39 const PlugInParameters ¶meters );
41 void addListener( TestResult *eventManager );
43 void removeListener( TestResult *eventManager );
45 void addXmlOutputterHooks( XmlOutputter *outputter );
47 void removeXmlOutputterHooks();
49 void uninitialize( TestFactoryRegistry *registry );
55 #if CPPUNIT_NEED_DLL_DECL
56 #pragma warning( pop )
59 #endif // !defined(CPPUNIT_NO_TESTPLUGIN)
61 #endif // CPPUNIT_PLUGIN_TESTPLUGINADAPTER