Changeset 477 for library/tests/unittest-cpp/TestResults.h
- Timestamp:
- 08/05/09 14:40:03 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/unittest-cpp/TestResults.h
r418 r477 7 7 class TestDetails; 8 8 9 class TestResults 10 { 9 class TestResults { 11 10 public: 12 explicit TestResults(TestReporter* reporter = 0);11 explicit TestResults ( TestReporter* reporter = 0 ); 13 12 14 void OnTestStart(TestDetails const& test);15 void OnTestFailure(TestDetails const& test, char const* failure);16 void OnTestFinish(TestDetails const& test, float secondsElapsed);13 void OnTestStart ( TestDetails const& test ); 14 void OnTestFailure ( TestDetails const& test, char const* failure ); 15 void OnTestFinish ( TestDetails const& test, float secondsElapsed ); 17 16 18 19 20 17 int GetTotalTestCount() const; 18 int GetFailedTestCount() const; 19 int GetFailureCount() const; 21 20 22 21 private: 23 24 25 26 22 TestReporter* m_testReporter; 23 int m_totalTestCount; 24 int m_failedTestCount; 25 int m_failureCount; 27 26 28 27 bool m_currentTestFailed; 29 28 30 TestResults(TestResults const&);31 TestResults& operator =(TestResults const&);29 TestResults ( TestResults const& ); 30 TestResults& operator = ( TestResults const& ); 32 31 }; 33 32