Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / tools / cppunit / TestSuite.h
blob25a549763f63ec4c9841cd19ad5b8a455eebb93a
1 #ifndef _beos_test_suite_h_
2 #define _beos_test_suite_h_
4 #include <BeBuild.h>
5 #include <cppunit/Test.h>
6 #include <map>
7 #include <string>
9 namespace CppUnit {
10 class TestResult;
13 //! Groups together a set of tests for a given kit.
14 class CPPUNIT_API BTestSuite : public CppUnit::Test {
15 public:
16 BTestSuite(std::string name = "");
17 virtual ~BTestSuite();
19 virtual void run(CppUnit::TestResult *result);
20 virtual int countTestCases() const;
21 virtual std::string getName() const;
22 virtual std::string toString() const;
24 virtual void addTest(std::string name, CppUnit::Test *test);
25 virtual void deleteContents();
27 const std::map<std::string, CppUnit::Test*> &getTests() const;
29 protected:
30 std::map<std::string, CppUnit::Test*> fTests;
31 const std::string fName;
33 private:
34 BTestSuite(const BTestSuite &other);
35 BTestSuite& operator=(const BTestSuite &other);
39 #endif // _beos_test_listener_h_