CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TestPlugInDefaultImpl.h
Go to the documentation of this file.
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
15 CPPUNIT_NS_BEGIN
16
17
18class TestSuite;
19
20
31 class 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
53 CPPUNIT_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
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
Portability.h
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
TestPlugIn.h
PlugInParameters
Test plug-ins parameters.
Definition PlugInParameters.h:16
TestFactoryRegistry
Registry for TestFactory.
Definition TestFactoryRegistry.h:76
TestPlugInDefaultImpl::TestPlugInDefaultImpl
TestPlugInDefaultImpl()
Definition TestPlugInDefaultImpl.cpp:13
TestResult
Manages TestListener.
Definition TestResult.h:48
TestSuite
A Composite of Tests.
Definition TestSuite.h:41
XmlOutputter
Outputs a TestResultCollector in XML format.
Definition XmlOutputter.h:40
CppUnitTestPlugIn
Test plug-in interface.
Definition TestPlugIn.h:44
CppUnitTestPlugIn::removeXmlOutputterHooks
virtual void removeXmlOutputterHooks()=0
Called when the XmlOutputter is destroyed.
CppUnitTestPlugIn::addXmlOutputterHooks
virtual void addXmlOutputterHooks(CPPUNIT_NS::XmlOutputter *outputter)=0
Provides a way for the plug-in to register some XmlOutputterHook.
CppUnitTestPlugIn::uninitialize
virtual void uninitialize(CPPUNIT_NS::TestFactoryRegistry *registry)=0
Called just before unloading the dynamic library.
CppUnitTestPlugIn::removeListener
virtual void removeListener(CPPUNIT_NS::TestResult *eventManager)=0
Gives a chance to the plug-in to remove its registered TestListener.
CppUnitTestPlugIn::addListener
virtual void addListener(CPPUNIT_NS::TestResult *eventManager)=0
Gives a chance to the plug-in to register TestListener.
CppUnitTestPlugIn::initialize
virtual void initialize(CPPUNIT_NS::TestFactoryRegistry *registry, const CPPUNIT_NS::PlugInParameters &parameters)=0
Called just after loading the dynamic library.

| Send comments to: CppUnit Developers