source: trunk/contrib/cppunit-1.12.2/include/cppunit/plugin/TestPlugInDefaultImpl.h @ 876

Last change on this file since 876 was 876, checked in by sam, 9 years ago

contrib: add a precompiled Win32 version of CppUnit and update build system
accordingly.

File size: 1.4 KB
Line 
1#ifndef CPPUNIT_PLUGIN_TESTPLUGINADAPTER
2#define CPPUNIT_PLUGIN_TESTPLUGINADAPTER
3
4#include <cppunit/Portability.h>
5
6#if !defined(CPPUNIT_NO_TESTPLUGIN)
7
8#include <cppunit/plugin/TestPlugIn.h>
9
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
13#endif
14
15CPPUNIT_NS_BEGIN
16
17
18class TestSuite;
19
20
21/*! \brief Default implementation of test plug-in interface.
22 * \ingroup WritingTestPlugIn
23 *
24 * Override getSuiteName() to specify the suite name. Default is "All Tests".
25 *
26 * CppUnitTestPlugIn::getTestSuite() returns a suite that contains
27 * all the test registered to the default test factory registry
28 * ( TestFactoryRegistry::getRegistry() ).
29 *
30 */
31class CPPUNIT_API TestPlugInDefaultImpl : public CppUnitTestPlugIn
32{
33public:
34  TestPlugInDefaultImpl();
35
36  virtual ~TestPlugInDefaultImpl();
37
38  void initialize( TestFactoryRegistry *registry,
39                   const PlugInParameters &parameters );
40
41  void addListener( TestResult *eventManager );
42
43  void removeListener( TestResult *eventManager );
44
45  void addXmlOutputterHooks( XmlOutputter *outputter );
46
47  void removeXmlOutputterHooks();
48
49  void uninitialize( TestFactoryRegistry *registry );
50};
51
52
53CPPUNIT_NS_END
54
55#if CPPUNIT_NEED_DLL_DECL
56#pragma warning( pop )
57#endif
58
59#endif // !defined(CPPUNIT_NO_TESTPLUGIN)
60
61#endif // CPPUNIT_PLUGIN_TESTPLUGINADAPTER
Note: See TracBrowser for help on using the repository browser.