Changeset 477 for library/tests/unittest-cpp/XmlTestReporter.h
- Timestamp:
- 08/05/09 14:40:03 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/unittest-cpp/XmlTestReporter.h
r418 r477 6 6 #include <iosfwd> 7 7 8 namespace UnitTest 9 { 8 namespace UnitTest { 10 9 11 class XmlTestReporter : public DeferredTestReporter 12 { 10 class XmlTestReporter : public DeferredTestReporter { 13 11 public: 14 explicit XmlTestReporter(std::ostream& ostream);12 explicit XmlTestReporter ( std::ostream& ostream ); 15 13 16 virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);14 virtual void ReportSummary ( int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed ); 17 15 18 16 private: 19 XmlTestReporter(XmlTestReporter const&);20 XmlTestReporter& operator=(XmlTestReporter const&);17 XmlTestReporter ( XmlTestReporter const& ); 18 XmlTestReporter& operator= ( XmlTestReporter const& ); 21 19 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);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 ); 28 26 29 27 std::ostream& m_ostream; 30 28 }; 31 29