summaryrefslogtreecommitdiff
path: root/include/cppunit/TestSuite.h
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-29 13:09:16 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-29 13:09:16 +0000
commitb08ecaecc1e39b7b01e02b7b73559d8b34ff46a5 (patch)
treebf1ed1e3680cb0256e73336e22fb70c692524fcb /include/cppunit/TestSuite.h
parent5ce1a68589aa3ea4f9ee255cfecc94cc1730c6fa (diff)
downloadcppunit-b08ecaecc1e39b7b01e02b7b73559d8b34ff46a5.tar.gz
Merged Baptiste Lepilleurs CppUnitW 1.2.
Some differences: TypeInfo stuff (in TestSuite) compiled in only if USE_TYPEINFO is set. TestSuite.getTests now returns a const ref instead of taking a ref as param. Removed auto_ptr stuff from TestFactoryRegistry: auto_ptr cannot be used in containers.
Diffstat (limited to 'include/cppunit/TestSuite.h')
-rw-r--r--include/cppunit/TestSuite.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cppunit/TestSuite.h b/include/cppunit/TestSuite.h
index ffa21a8..5e3f6bd 100644
--- a/include/cppunit/TestSuite.h
+++ b/include/cppunit/TestSuite.h
@@ -4,6 +4,10 @@
#include <vector>
#include <string>
+#ifdef USE_TYPEINFO
+#include <typeinfo>
+#endif // USE_TYPEINFO
+
#ifndef CPPUNIT_TEST_H
#include "Test.h"
#endif
@@ -35,6 +39,9 @@ namespace CppUnit {
{
public:
TestSuite (std::string name = "");
+#ifdef USE_TYPEINFO
+ TestSuite (const std::type_info &info );
+#endif // USE_TYPEINFO
~TestSuite ();
void run (TestResult *result);
@@ -43,6 +50,8 @@ namespace CppUnit {
std::string getName () const;
std::string toString () const;
+ const std::vector<Test *> & getTests() const;
+
virtual void deleteContents ();
private: