Revision 706, 0.9 kB
(checked in by smidl, 15 years ago)
|
eol-native
|
-
Property svn:eol-style set to
native
|
Line | |
---|
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 | class XmlTestReporter : public DeferredTestReporter { |
---|
11 | public: |
---|
12 | explicit XmlTestReporter ( std::ostream& ostream ); |
---|
13 | |
---|
14 | virtual void ReportSummary ( int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed ); |
---|
15 | |
---|
16 | private: |
---|
17 | XmlTestReporter ( XmlTestReporter const& ); |
---|
18 | XmlTestReporter& operator= ( XmlTestReporter const& ); |
---|
19 | |
---|
20 | void AddXmlElement ( std::ostream& os, char const* encoding ); |
---|
21 | void BeginResults ( std::ostream& os, int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed ); |
---|
22 | void EndResults ( std::ostream& os ); |
---|
23 | void BeginTest ( std::ostream& os, DeferredTestResult const& result ); |
---|
24 | void AddFailure ( std::ostream& os, DeferredTestResult const& result ); |
---|
25 | void EndTest ( std::ostream& os, DeferredTestResult const& result ); |
---|
26 | |
---|
27 | std::ostream& m_ostream; |
---|
28 | }; |
---|
29 | |
---|
30 | } |
---|
31 | |
---|
32 | #endif |
---|