diff options
author | Vincent Richard <[email protected]> | 2005-09-06 20:08:39 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-09-06 20:08:39 +0000 |
commit | 3b1fcbe825c90dcb5e358ad7632b45d4cd512f54 (patch) | |
tree | 183d183a49b40058a300a7832cfe02c91ec5cab8 /tests/testUtils.hpp | |
parent | Added progression notifications. (diff) | |
download | vmime-3b1fcbe825c90dcb5e358ad7632b45d4cd512f54.tar.gz vmime-3b1fcbe825c90dcb5e358ad7632b45d4cd512f54.zip |
New namespace for message digest algorithms.
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r-- | tests/testUtils.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index cb4549e0..572f4602 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -21,6 +21,7 @@ #include <iostream> #include <sstream> #include <vector> +#include <string> // VMime @@ -53,7 +54,15 @@ }; \ \ static CppUnit::AutoRegisterSuite <VMIME_TEST_SUITE>(autoRegisterRegistry1); \ - static CppUnit::AutoRegisterSuite <VMIME_TEST_SUITE>(autoRegisterRegistry2)(VMIME_TEST_SUITE_MODULE); + static CppUnit::AutoRegisterSuite <VMIME_TEST_SUITE>(autoRegisterRegistry2)(VMIME_TEST_SUITE_MODULE); \ + extern void registerTestModule(const char* name); \ + template <typename T> \ + struct AutoRegisterModule { \ + AutoRegisterModule() { \ + registerTestModule(VMIME_TEST_SUITE_MODULE); \ + } \ + }; \ + static AutoRegisterModule <VMIME_TEST_SUITE> autoRegisterModule; #define VMIME_TEST_LIST_BEGIN CPPUNIT_TEST_SUITE(VMIME_TEST_SUITE); #define VMIME_TEST_LIST_END CPPUNIT_TEST_SUITE_END(); |