diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-27 20:23:22 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-27 20:23:22 +0000 |
| commit | 5813e2e80e995893a0a2d2fe4a6f6a8c2155d82c (patch) | |
| tree | 317da54d9f4aaa23d85b996b7624f21f96b010e0 /include | |
| parent | d52bd686fe91e4c5104b60632ed18eb26ae827f6 (diff) | |
| download | cppunit-5813e2e80e995893a0a2d2fe4a6f6a8c2155d82c.tar.gz | |
Examples/msvc6/CppUnitTestApp/CppUnitTestApp.
examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp:
moved dll copy from post-build to custom build setting, so that the
dll is copied even if the CppUnitTestApp was not modified.
* examples/msvc6/TestPlugIn/: a new example of test plug in.
* src/msvc6/TestRunner/ListCtrlFormatter.*
* src/msvc6/TestRunner/ListCtrlSetter.*:
added, helper to manipulate list control.
* src/msvc6/TestRunner/TestRunnerDlg.*: change to make the error list
more compact. text moved to string resources. icons added for typ
test tfailure type.
* src/msvc6/TestRunner/MostRecentTests.*: added, classes that will
replace the current implementation of MRU test which make it hard
to subclass the dialog.
* src/msvc6/TestRunner/res/errortype.bmp: added, bitmap with error
types (failure and error).
* src/msvc6/TestPlugInRunner/: A test runner to run test plug in.
Test plug in are DLL that publish a specified plug in interface.
Those DLL are loaded and reloaded by the TestPlugInRunner to run
tests. This remove the need to wrap DLL with a executable to test
them.
* src/cppunit/cppunit.dsp:
removed config.h from project
added Portability.h and config-msvc6.h
* include/cppunit/config-msvc6.h:
undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
Diffstat (limited to 'include')
| -rw-r--r-- | include/cppunit/config-msvc6.h | 4 | ||||
| -rw-r--r-- | include/msvc6/testrunner/TestPlugInInterface.h | 22 | ||||
| -rw-r--r-- | include/msvc6/testrunner/TestRunner.h | 18 |
3 files changed, 41 insertions, 3 deletions
diff --git a/include/cppunit/config-msvc6.h b/include/cppunit/config-msvc6.h index 66747ae..2ee8bdd 100644 --- a/include/cppunit/config-msvc6.h +++ b/include/cppunit/config-msvc6.h @@ -5,8 +5,8 @@ include/cppunit/config-auto.h */ /* define if library uses std::string::compare(string,pos,n) */ -#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST -#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1 +#ifdef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST +#undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST #endif /* Define if you have the <dlfcn.h> header file. */ diff --git a/include/msvc6/testrunner/TestPlugInInterface.h b/include/msvc6/testrunner/TestPlugInInterface.h new file mode 100644 index 0000000..3e0332b --- /dev/null +++ b/include/msvc6/testrunner/TestPlugInInterface.h @@ -0,0 +1,22 @@ +#ifndef CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H +#define CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H + +#define NOMINMAX +#include <windef.h> // for WINAPI + + +#include <cppunit/Test.h> + +class TestPlugInInterface +{ +public: + virtual ~TestPlugInInterface() {} + + virtual CppUnit::Test *makeTest() =0; +}; + +typedef TestPlugInInterface* (WINAPI *GetTestPlugInInterfaceFunction)(void); + + + +#endif // CPPUNIT_TESTPLUGINRUNNER_TESTPLUGININTERFACE_H diff --git a/include/msvc6/testrunner/TestRunner.h b/include/msvc6/testrunner/TestRunner.h index 97f92c6..18478eb 100644 --- a/include/msvc6/testrunner/TestRunner.h +++ b/include/msvc6/testrunner/TestRunner.h @@ -14,9 +14,25 @@ #include <vector> #include <cppunit/TestSuite.h> +/* Refer to MSDN documentation to know how to write and use MFC extension DLL: + mk:@MSITStore:h:\DevStudio\MSDN\98VSa\1036\vcmfc.chm::/html/_mfcnotes_tn033.htm#_mfcnotes_how_to_write_an_mfc_extension_dll + + This can be found in the index with "mfc extension" + The basic: + Using: + - your application must use MFC DLL + - memory allocation is done using the same heap + - you must define the symbol _AFX_DLL + + Building: + - you must define the symbol _AFX_DLL and _AFX_EXT + - export class using AFX_EXT_CLASS + */ + + // A Wrapper -class AFX_CLASS_EXPORT TestRunner +class AFX_EXT_CLASS TestRunner { public: TestRunner (); |
