1 #ifndef UNITTEST_TESTRESULTS_H
2 #define UNITTEST_TESTRESULTS_H
4 #include "HelperMacros.h"
11 class UNITTEST_LINKAGE TestResults
14 explicit TestResults(TestReporter* reporter = 0);
16 void OnTestStart(TestDetails
const& test);
17 void OnTestFailure(TestDetails
const& test,
char const* failure);
18 void OnTestFinish(TestDetails
const& test,
float secondsElapsed);
20 int GetTotalTestCount()
const;
21 int GetFailedTestCount()
const;
22 int GetFailureCount()
const;
25 TestReporter* m_testReporter;
27 int m_failedTestCount;
30 bool m_currentTestFailed;
32 TestResults(TestResults
const&);
33 TestResults& operator =(TestResults
const&);