root/library/tests/unittest-cpp/TestResults.h @ 706

Revision 706, 0.7 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1#ifndef UNITTEST_TESTRESULTS_H
2#define UNITTEST_TESTRESULTS_H
3
4namespace UnitTest {
5
6class TestReporter;
7class TestDetails;
8
9class TestResults {
10public:
11        explicit TestResults ( TestReporter* reporter = 0 );
12
13        void OnTestStart ( TestDetails const& test );
14        void OnTestFailure ( TestDetails const& test, char const* failure );
15        void OnTestFinish ( TestDetails const& test, float secondsElapsed );
16
17        int GetTotalTestCount() const;
18        int GetFailedTestCount() const;
19        int GetFailureCount() const;
20
21private:
22        TestReporter* m_testReporter;
23        int m_totalTestCount;
24        int m_failedTestCount;
25        int m_failureCount;
26
27        bool m_currentTestFailed;
28
29        TestResults ( TestResults const& );
30        TestResults& operator = ( TestResults const& );
31};
32
33}
34
35#endif
Note: See TracBrowser for help on using the browser.