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 | |
---|
4 | namespace UnitTest { |
---|
5 | |
---|
6 | class TestReporter; |
---|
7 | class TestDetails; |
---|
8 | |
---|
9 | class TestResults { |
---|
10 | public: |
---|
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 | |
---|
21 | private: |
---|
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 |
---|