summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/HelperMacros.h
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-05-06 16:21:31 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-05-06 16:21:31 +0000
commitc29893f76ae8c37e14eb99f25d517535c1d37b42 (patch)
treee32a57e2fb34631739510a726e3865d3f3db9a32 /include/cppunit/extensions/HelperMacros.h
parent92c488aa6f744a1f0f0bbc92ad485d5cc715736a (diff)
downloadcppunit-c29893f76ae8c37e14eb99f25d517535c1d37b42.tar.gz
Removed unnecessary #include's of TestSuiteBuilder.h
Removed RTTI dependent stuff from TestSuite and TestSuiteBuilder.
Diffstat (limited to 'include/cppunit/extensions/HelperMacros.h')
-rw-r--r--include/cppunit/extensions/HelperMacros.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h
index 0cb3495..126483e 100644
--- a/include/cppunit/extensions/HelperMacros.h
+++ b/include/cppunit/extensions/HelperMacros.h
@@ -6,6 +6,7 @@
#ifndef CPPUNIT_EXTENSIONS_HELPERMACROS_H
#define CPPUNIT_EXTENSIONS_HELPERMACROS_H
+#include <string>
#include <cppunit/extensions/AutoRegisterSuite.h>
#include <cppunit/extensions/TestSuiteBuilder.h>
@@ -49,7 +50,7 @@
* You only need to specify the full qualified name of the class. For example:
*
* \code
- * template<class CharType>
+ * template<typename CharType>
* class StringTest : public CppUnit::Testcase {
* CU_TEST_SUITE( StringTest<CharType> );
* CU_TEST( testAppend );
@@ -76,11 +77,12 @@
static CppUnit::Test *suite() \
{ \
__ThisTestCaseType *test =NULL; \
- CppUnit::TestSuiteBuilder<__ThisTestCaseType> suite; \
+ CppUnit::TestSuiteBuilder<__ThisTestCaseType> \
+ suite(std::string(#ATestCaseType)); \
__ThisTestCaseType::registerTests( suite, test ); \
return suite.takeSuite(); \
} \
- template<class TestCaseType> \
+ template<typename TestCaseType> \
static void \
registerTests( CppUnit::TestSuiteBuilder<TestCaseType> &suite, \
TestCaseType *test ) \