Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ode/ode-0.9/tests/CppTestHarness/TestResults.cpp @ 216

Last change on this file since 216 was 216, checked in by mathiask, 16 years ago

[Physik] add ode-0.9

File size: 539 bytes
Line 
1#include "TestResults.h"
2#include "TestReporter.h"
3
4namespace CppTestHarness
5{
6
7TestResults::TestResults(TestReporter& testReporter)
8        : m_failure(false)
9        , m_testReporter(testReporter)
10{
11}
12
13void 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
19void TestResults::ReportDone(const std::string& testName)
20{
21        m_testReporter.ReportSingleResult(testName, m_failure);
22}
23
24bool TestResults::Failed() const
25{
26        return m_failure;
27}
28
29}
30
Note: See TracBrowser for help on using the repository browser.