1 #ifndef UNITTEST_XMLTESTREPORTER_H
2 #define UNITTEST_XMLTESTREPORTER_H
5 #ifndef UNITTEST_NO_DEFERRED_REPORTER
7 #include "DeferredTestReporter.h"
14 class UNITTEST_LINKAGE XmlTestReporter :
public DeferredTestReporter
17 explicit XmlTestReporter(std::ostream& ostream);
19 virtual void ReportSummary(
int totalTestCount,
int failedTestCount,
int failureCount,
float secondsElapsed);
22 XmlTestReporter(XmlTestReporter
const&);
23 XmlTestReporter& operator=(XmlTestReporter
const&);
25 void AddXmlElement(std::ostream& os,
char const* encoding);
26 void BeginResults(std::ostream& os,
int totalTestCount,
int failedTestCount,
int failureCount,
float secondsElapsed);
27 void EndResults(std::ostream& os);
28 void BeginTest(std::ostream& os, DeferredTestResult
const& result);
29 void AddFailure(std::ostream& os, DeferredTestResult
const& result);
30 void EndTest(std::ostream& os, DeferredTestResult
const& result);
32 std::ostream& m_ostream;