~s-cecilio/lenmus/v5.3

« back to all changes in this revision

Viewing changes to packages/UnitTest++/src/XmlTestReporter.h

  • Committer: cecilios
  • Date: 2012-09-11 16:59:18 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:730
Paths: fixed problem with installation folders. Fixed Chinese ISO language code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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