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

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

RevLine 
[418]1#ifndef UNITTEST_TESTRESULTS_H
2#define UNITTEST_TESTRESULTS_H
3
4namespace UnitTest {
5
6class TestReporter;
7class TestDetails;
8
[477]9class TestResults {
[418]10public:
[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
21private:
[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
Note: See TracBrowser for help on using the browser.