haiku/headers/tools/cppunit/TestSuite.h
Oliver Tappe 58481f0f6e * fix gcc4 build of cppunit library by explicitly spelling out std:: in
the headers and importing the required classes in the implementation files
* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 19:04:52 +00:00

40 lines
896 B
C++

#ifndef _beos_test_suite_h_
#define _beos_test_suite_h_
#include <BeBuild.h>
#include <cppunit/Test.h>
#include <map>
#include <string>
namespace CppUnit {
class TestResult;
}
//! Groups together a set of tests for a given kit.
class CPPUNIT_API 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<std::string, CppUnit::Test*> &getTests() const;
protected:
std::map<std::string, CppUnit::Test*> fTests;
const std::string fName;
private:
BTestSuite(const BTestSuite &other);
BTestSuite& operator=(const BTestSuite &other);
};
#endif // _beos_test_listener_h_