CppUnit project page FAQ CppUnit home page

TestPlugInDefaultImpl.h
Go to the documentation of this file.
00001 #ifndef CPPUNIT_PLUGIN_TESTPLUGINADAPTER
00002 #define CPPUNIT_PLUGIN_TESTPLUGINADAPTER
00003 
00004 #include <cppunit/Portability.h>
00005 
00006 #if !defined(CPPUNIT_NO_TESTPLUGIN)
00007 
00008 #include <cppunit/plugin/TestPlugIn.h>
00009 
00010 #if CPPUNIT_NEED_DLL_DECL
00011 #pragma warning( push )
00012 #pragma warning( disable: 4251 4660 )  // X needs to have dll-interface to be used by clients of class Z
00013 #endif
00014 
00015 CPPUNIT_NS_BEGIN
00016 
00017 
00018 class TestSuite;
00019 
00020 
00031 class CPPUNIT_API TestPlugInDefaultImpl : public CppUnitTestPlugIn
00032 {
00033 public:
00034   TestPlugInDefaultImpl();
00035 
00036   virtual ~TestPlugInDefaultImpl();
00037 
00038   void initialize( TestFactoryRegistry *registry,
00039                    const PlugInParameters &parameters );
00040 
00041   void addListener( TestResult *eventManager );
00042 
00043   void removeListener( TestResult *eventManager );
00044 
00045   void addXmlOutputterHooks( XmlOutputter *outputter );
00046 
00047   void removeXmlOutputterHooks();
00048 
00049   void uninitialize( TestFactoryRegistry *registry );
00050 };
00051 
00052 
00053 CPPUNIT_NS_END
00054 
00055 #if CPPUNIT_NEED_DLL_DECL
00056 #pragma warning( pop )
00057 #endif
00058 
00059 #endif // !defined(CPPUNIT_NO_TESTPLUGIN)
00060 
00061 #endif // CPPUNIT_PLUGIN_TESTPLUGINADAPTER

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers