root/library/tests/unittest-cpp/DeferredTestReporter.cpp @ 691

Revision 477, 0.8 kB (checked in by mido, 15 years ago)

panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc

Line 
1#include "DeferredTestReporter.h"
2#include "TestDetails.h"
3
4using namespace UnitTest;
5
6void DeferredTestReporter::ReportTestStart ( TestDetails const& details ) {
7        m_results.push_back ( DeferredTestResult ( details.suiteName, details.testName ) );
8}
9
10void 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
17void DeferredTestReporter::ReportTestFinish ( TestDetails const&, float secondsElapsed ) {
18        DeferredTestResult& r = m_results.back();
19        r.timeElapsed = secondsElapsed;
20}
21
22DeferredTestReporter::DeferredTestResultList& DeferredTestReporter::GetResults() {
23        return m_results;
24}
Note: See TracBrowser for help on using the browser.