From 36b1a33703f7a79b4e1edafff6b4963a534a3497 Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Mon, 15 Jul 2002 06:51:57 +0000 Subject: [PATCH] Rewritten completely git-svn-id: file:///srv/svn/repos/haiku/trunk/current@235 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/tools/cppunit/TestSuite.h | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 headers/tools/cppunit/TestSuite.h diff --git a/headers/tools/cppunit/TestSuite.h b/headers/tools/cppunit/TestSuite.h new file mode 100644 index 0000000000..39883fb439 --- /dev/null +++ b/headers/tools/cppunit/TestSuite.h @@ -0,0 +1,36 @@ +#ifndef _beos_test_suite_h_ +#define _beos_test_suite_h_ + +#include +#include +#include + +class CppUnit::TestResult; + +//! Groups together a set of tests for a given kit. +class BTestSuite : public CppUnit::Test { +public: + BTestSuite( std::string name ); + virtual ~BTestSuite(); + + virtual void run( CppUnit::TestResult *result ); + virtual int countTestCases() const; + virtual std::string getName() const; + virtual std::string toString() const; + + virtual void addTest(std::string name, CppUnit::Test *test); + virtual void deleteContents(); + + const std::map &getTests() const; + +protected: + std::map fTests; + const std::string fName; + +private: + BTestSuite(const BTestSuite &other); + BTestSuite& operator=(const BTestSuite &other); + +}; + +#endif // _beos_test_listener_h_