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