1 #ifndef UNITTEST_COMPOSITETESTREPORTER_H
2 #define UNITTEST_COMPOSITETESTREPORTER_H
4 #include "TestReporter.h"
8 class UNITTEST_LINKAGE CompositeTestReporter :
public TestReporter
11 CompositeTestReporter();
13 int GetReporterCount()
const;
14 bool AddReporter(TestReporter* reporter);
15 bool RemoveReporter(TestReporter* reporter);
17 virtual void ReportTestStart(TestDetails
const& test);
18 virtual void ReportFailure(TestDetails
const& test,
char const* failure);
19 virtual void ReportTestFinish(TestDetails
const& test,
float secondsElapsed);
20 virtual void ReportSummary(
int totalTestCount,
int failedTestCount,
int failureCount,
float secondsElapsed);
23 enum { kMaxReporters = 16 };
24 TestReporter* m_reporters[kMaxReporters];
28 CompositeTestReporter(
const CompositeTestReporter&);
29 CompositeTestReporter& operator =(
const CompositeTestReporter&);