aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/Test.h
diff options
context:
space:
mode:
authordan miller2007-10-19 05:20:48 +0000
committerdan miller2007-10-19 05:20:48 +0000
commitd48ea5bb797037069d641da41da0f195f0124491 (patch)
tree40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/tests/CppTestHarness/Test.h
parentdont ask (diff)
downloadopensim-SC_OLD-d48ea5bb797037069d641da41da0f195f0124491.zip
opensim-SC_OLD-d48ea5bb797037069d641da41da0f195f0124491.tar.gz
opensim-SC_OLD-d48ea5bb797037069d641da41da0f195f0124491.tar.bz2
opensim-SC_OLD-d48ea5bb797037069d641da41da0f195f0124491.tar.xz
one more for the gipper
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