Rev | Line | |
---|
[216] | 1 | #ifndef TEST_RESULTS_H |
---|
| 2 | #define TEST_RESULTS_H |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | |
---|
| 6 | namespace CppTestHarness |
---|
| 7 | { |
---|
| 8 | |
---|
| 9 | class TestReporter; |
---|
| 10 | |
---|
| 11 | class TestResults |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 14 | explicit TestResults(TestReporter& reporter); |
---|
| 15 | |
---|
| 16 | void ReportFailure(char const* file, int line, std::string failure); |
---|
| 17 | void ReportDone(const std::string& testName); |
---|
| 18 | |
---|
| 19 | bool Failed() const; |
---|
| 20 | |
---|
| 21 | private: |
---|
| 22 | bool m_failure; |
---|
| 23 | TestReporter& m_testReporter; |
---|
| 24 | |
---|
| 25 | // revoked |
---|
| 26 | TestResults(TestResults const&); |
---|
| 27 | TestResults& operator =(TestResults const&); |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | #endif |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.