root/library/tests/unittest-cpp/XmlTestReporter.h @ 1090

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
8namespace UnitTest {
9
10class XmlTestReporter : public DeferredTestReporter {
11public:
12        explicit XmlTestReporter ( std::ostream& ostream );
13
14        virtual void ReportSummary ( int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed );
15
16private:
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
Note: See TracBrowser for help on using the browser.