Revision 706, 0.8 kB
(checked in by smidl, 15 years ago)
|
eol-native
|
-
Property svn:eol-style set to
native
|
Line | |
---|
1 | #include "DeferredTestReporter.h" |
---|
2 | #include "TestDetails.h" |
---|
3 | |
---|
4 | using namespace UnitTest; |
---|
5 | |
---|
6 | void DeferredTestReporter::ReportTestStart ( TestDetails const& details ) { |
---|
7 | m_results.push_back ( DeferredTestResult ( details.suiteName, details.testName ) ); |
---|
8 | } |
---|
9 | |
---|
10 | void DeferredTestReporter::ReportFailure ( TestDetails const& details, char const* failure ) { |
---|
11 | DeferredTestResult& r = m_results.back(); |
---|
12 | r.failed = true; |
---|
13 | r.failures.push_back ( DeferredTestResult::Failure ( details.lineNumber, failure ) ); |
---|
14 | r.failureFile = details.filename; |
---|
15 | } |
---|
16 | |
---|
17 | void DeferredTestReporter::ReportTestFinish ( TestDetails const&, float secondsElapsed ) { |
---|
18 | DeferredTestResult& r = m_results.back(); |
---|
19 | r.timeElapsed = secondsElapsed; |
---|
20 | } |
---|
21 | |
---|
22 | DeferredTestReporter::DeferredTestResultList& DeferredTestReporter::GetResults() { |
---|
23 | return m_results; |
---|
24 | } |
---|