aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/Test.h')
-rw-r--r--libraries/ode-0.9/tests/CppTestHarness/Test.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/ode-0.9/tests/CppTestHarness/Test.h b/libraries/ode-0.9/tests/CppTestHarness/Test.h
new file mode 100644
index 0000000..bd35935
--- /dev/null
+++ b/libraries/ode-0.9/tests/CppTestHarness/Test.h
@@ -0,0 +1,40 @@
1#ifndef TEST_H
2#define TEST_H
3
4#include <string>
5
6namespace CppTestHarness
7{
8class TestResults;
9
10class Test
11{
12public:
13 virtual ~Test();
14 void Run(TestResults& testResults);
15
16 static Test* GetListHead();
17
18protected:
19 Test(std::string testName = std::string(),
20 std::string filename = std::string(),
21 int lineNumber = 0);
22
23private:
24 virtual void RunImpl(TestResults& testResults_) = 0;
25
26 std::string const m_testName;
27 std::string const m_filename;
28 int const m_lineNumber;
29
30 Test* m_listNext;
31
32 // revoked
33 Test(Test const&);
34 Test& operator =(Test const&);
35};
36
37}
38
39#endif
40