comparison ext/UnitTest++/src/XmlTestReporter.h @ 37:0d325e9d5953

added unittest++ files into ext. Not hooked into build scripts yet
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 12:00:57 +0000
parents
children
comparison
equal deleted inserted replaced
36:6f1227f4932b 37:0d325e9d5953
1 #ifndef UNITTEST_XMLTESTREPORTER_H
2 #define UNITTEST_XMLTESTREPORTER_H
3
4 #include "DeferredTestReporter.h"
5
6 #include <iosfwd>
7
8 namespace UnitTest
9 {
10
11 class XmlTestReporter : public DeferredTestReporter
12 {
13 public:
14 explicit XmlTestReporter(std::ostream& ostream);
15
16 virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);
17
18 private:
19 XmlTestReporter(XmlTestReporter const&);
20 XmlTestReporter& operator=(XmlTestReporter const&);
21
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);
28
29 std::ostream& m_ostream;
30 };
31
32 }
33
34 #endif