From 3b1fcbe825c90dcb5e358ad7632b45d4cd512f54 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 6 Sep 2005 20:08:39 +0000 Subject: New namespace for message digest algorithms. --- tests/testUtils.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/testUtils.hpp') 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 #include #include +#include // VMime @@ -53,7 +54,15 @@ }; \ \ static CppUnit::AutoRegisterSuite (autoRegisterRegistry1); \ - static CppUnit::AutoRegisterSuite (autoRegisterRegistry2)(VMIME_TEST_SUITE_MODULE); + static CppUnit::AutoRegisterSuite (autoRegisterRegistry2)(VMIME_TEST_SUITE_MODULE); \ + extern void registerTestModule(const char* name); \ + template \ + struct AutoRegisterModule { \ + AutoRegisterModule() { \ + registerTestModule(VMIME_TEST_SUITE_MODULE); \ + } \ + }; \ + static AutoRegisterModule autoRegisterModule; #define VMIME_TEST_LIST_BEGIN CPPUNIT_TEST_SUITE(VMIME_TEST_SUITE); #define VMIME_TEST_LIST_END CPPUNIT_TEST_SUITE_END(); -- cgit v1.2.3