CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TestPlugInInterface.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H
2 #define CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H
3
4 #include <cppunit/Test.h>
5 #include <cppunit/TestSuite.h>
6
7 #if !defined(WINAPI)
8 #define WIN32_LEAN_AND_MEAN
9 #define NOGDI
10 #define NOUSER
11 #define NOKERNEL
12 #define NOSOUND
13 #define NOMINMAX
14 #include <windows.h>
15 #endif
16
33 class TestPlugInInterface
34 {
35 public:
36 virtual ~TestPlugInInterface() {}
37
43 virtual CppUnit::Test *makeTest() =0;
44 };
45
46 typedef TestPlugInInterface* (WINAPI *GetTestPlugInInterfaceFunction)(void);
47
48
49 extern "C" {
50 __declspec(dllexport) TestPlugInInterface *GetTestPlugInInterface();
51 }
52
53
54
55 #endif // CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H
TestSuite.h
TestPlugInInterface::~TestPlugInInterface
virtual ~TestPlugInInterface()
Definition: TestPlugInInterface.h:36
GetTestPlugInInterfaceFunction
TestPlugInInterface *(WINAPI * GetTestPlugInInterfaceFunction)(void)
Definition: TestPlugInInterface.h:46
TestPlugInInterface
Abstract TestPlugIn for DLL.
Definition: TestPlugInInterface.h:33
Test.h
__declspec
__declspec(dllexport) TestPlugInInterface *GetTestPlugInInterface()
TestPlugInInterface::makeTest
virtual CppUnit::Test * makeTest()=0

| Send comments to: CppUnit Developers