Revision 477, 0.7 kB
(checked in by mido, 15 years ago)
|
panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc
|
Rev | Line | |
---|
[418] | 1 | #ifndef UNITTEST_TESTRESULTS_H |
---|
| 2 | #define UNITTEST_TESTRESULTS_H |
---|
| 3 | |
---|
| 4 | namespace UnitTest { |
---|
| 5 | |
---|
| 6 | class TestReporter; |
---|
| 7 | class TestDetails; |
---|
| 8 | |
---|
[477] | 9 | class TestResults { |
---|
[418] | 10 | public: |
---|
[477] | 11 | explicit TestResults ( TestReporter* reporter = 0 ); |
---|
[418] | 12 | |
---|
[477] | 13 | void OnTestStart ( TestDetails const& test ); |
---|
| 14 | void OnTestFailure ( TestDetails const& test, char const* failure ); |
---|
| 15 | void OnTestFinish ( TestDetails const& test, float secondsElapsed ); |
---|
[418] | 16 | |
---|
[477] | 17 | int GetTotalTestCount() const; |
---|
| 18 | int GetFailedTestCount() const; |
---|
| 19 | int GetFailureCount() const; |
---|
[418] | 20 | |
---|
| 21 | private: |
---|
[477] | 22 | TestReporter* m_testReporter; |
---|
| 23 | int m_totalTestCount; |
---|
| 24 | int m_failedTestCount; |
---|
| 25 | int m_failureCount; |
---|
[418] | 26 | |
---|
[477] | 27 | bool m_currentTestFailed; |
---|
[418] | 28 | |
---|
[477] | 29 | TestResults ( TestResults const& ); |
---|
| 30 | TestResults& operator = ( TestResults const& ); |
---|
[418] | 31 | }; |
---|
| 32 | |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | #endif |
---|