diff options
author | dan miller | 2007-10-19 05:15:33 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:15:33 +0000 |
commit | 79eca25c945a535a7a0325999034bae17da92412 (patch) | |
tree | 40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp')
-rw-r--r-- | libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp b/libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp new file mode 100644 index 0000000..f2d2f81 --- /dev/null +++ b/libraries/ode-0.9/tests/CppTestHarness/TestResults.cpp | |||
@@ -0,0 +1,30 @@ | |||
1 | #include "TestResults.h" | ||
2 | #include "TestReporter.h" | ||
3 | |||
4 | namespace CppTestHarness | ||
5 | { | ||
6 | |||
7 | TestResults::TestResults(TestReporter& testReporter) | ||
8 | : m_failure(false) | ||
9 | , m_testReporter(testReporter) | ||
10 | { | ||
11 | } | ||
12 | |||
13 | void TestResults::ReportFailure(char const* file, int const line, std::string const failure) | ||
14 | { | ||
15 | m_failure = true; | ||
16 | m_testReporter.ReportFailure(file, line, failure); | ||
17 | } | ||
18 | |||
19 | void TestResults::ReportDone(const std::string& testName) | ||
20 | { | ||
21 | m_testReporter.ReportSingleResult(testName, m_failure); | ||
22 | } | ||
23 | |||
24 | bool TestResults::Failed() const | ||
25 | { | ||
26 | return m_failure; | ||
27 | } | ||
28 | |||
29 | } | ||
30 | |||