summaryrefslogtreecommitdiff
path: root/include/cppunit/plugin/TestPlugIn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/plugin/TestPlugIn.h')
-rw-r--r--include/cppunit/plugin/TestPlugIn.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/cppunit/plugin/TestPlugIn.h b/include/cppunit/plugin/TestPlugIn.h
index b77d50b..568293e 100644
--- a/include/cppunit/plugin/TestPlugIn.h
+++ b/include/cppunit/plugin/TestPlugIn.h
@@ -7,8 +7,9 @@
#include <cppunit/plugin/Parameters.h>
-namespace CppUnit
-{
+CPPUNIT_NS_BEGIN
+
+
class Test;
class TestFactoryRegistry;
class TestResult;
@@ -53,8 +54,8 @@ struct CppUnitTestPlugIn
* N.B.: Parameters interface is not define yet, and the plug-in runner does
* not yet support plug-in parameter.
*/
- virtual void initialize( CppUnit::TestFactoryRegistry *registry,
- const CppUnit::Parameters &parameters ) =0;
+ virtual void initialize( CPPUNIT_NS(TestFactoryRegistry) *registry,
+ const CPPUNIT_NS(Parameters) &parameters ) =0;
/*! Gives a chance to the plug-in to register TestListener.
*
@@ -63,17 +64,17 @@ struct CppUnitTestPlugIn
* setUp some global resource: listen to TestListener::startTestRun(),
* and TestListener::endTestRun().
*/
- virtual void addListener( CppUnit::TestResult *eventManager ) =0;
+ virtual void addListener( CPPUNIT_NS(TestResult) *eventManager ) =0;
/*! Gives a chance to the plug-in to remove its registered TestListener.
*
* Override this method to remove a TestListener that has been added.
*/
- virtual void removeListener( CppUnit::TestResult *eventManager ) =0;
+ virtual void removeListener( CPPUNIT_NS(TestResult) *eventManager ) =0;
/*! Provides a way for the plug-in to register some XmlOutputterHook.
*/
- virtual void addXmlOutputterHooks( CppUnit::XmlOutputter *outputter ) =0;
+ virtual void addXmlOutputterHooks( CPPUNIT_NS(XmlOutputter) *outputter ) =0;
/*! Called when the XmlOutputter is destroyed.
*
@@ -89,7 +90,7 @@ struct CppUnitTestPlugIn
* reference on test that are no longer available if they are not
* unregistered.
*/
- virtual void uninitialize( CppUnit::TestFactoryRegistry *registry ) =0;
+ virtual void uninitialize( CPPUNIT_NS(TestFactoryRegistry) *registry ) =0;
};
@@ -185,7 +186,7 @@ typedef CppUnitTestPlugIn *(*TestPlugInSignature)();
* \see CPPUNIT_PLUGIN_EXPORTED_FUNCTION_IMPL(), CPPUNIT_PLUGIN_IMPLEMENT_MAIN().
*/
#define CPPUNIT_PLUGIN_IMPLEMENT() \
- CPPUNIT_PLUGIN_EXPORTED_FUNCTION_IMPL( CppUnit::TestPlugInDefaultImpl ); \
+ CPPUNIT_PLUGIN_EXPORTED_FUNCTION_IMPL( CPPUNIT_NS(TestPlugInDefaultImpl) ); \
CPPUNIT_PLUGIN_IMPLEMENT_MAIN()