OpenSimMirror/libraries/ode-0.9/tests/CppTestHarness/Test.h

41 lines
584 B
C
Raw Normal View History

2007-10-19 05:24:38 +00:00
#ifndef TEST_H
#define TEST_H
#include <string>
namespace CppTestHarness
{
class TestResults;
class Test
{
public:
virtual ~Test();
void Run(TestResults& testResults);
static Test* GetListHead();
protected:
Test(std::string testName = std::string(),
std::string filename = std::string(),
int lineNumber = 0);
private:
virtual void RunImpl(TestResults& testResults_) = 0;
std::string const m_testName;
std::string const m_filename;
int const m_lineNumber;
Test* m_listNext;
// revoked
Test(Test const&);
Test& operator =(Test const&);
};
}
#endif