Rev | Line | |
---|
[216] | 1 | #ifndef TEST_REPORTER_H |
---|
| 2 | #define TEST_REPORTER_H |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | |
---|
| 6 | namespace CppTestHarness |
---|
| 7 | { |
---|
| 8 | |
---|
| 9 | class TestReporter |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | virtual ~TestReporter(); |
---|
| 13 | |
---|
| 14 | virtual void ReportFailure(char const* file, int line, std::string failure) = 0; |
---|
| 15 | virtual void ReportSingleResult(const std::string& testName, bool failed) = 0; |
---|
| 16 | virtual void ReportSummary(int testCount, int failureCount) = 0; |
---|
| 17 | |
---|
| 18 | protected: |
---|
| 19 | TestReporter(); |
---|
| 20 | }; |
---|
| 21 | |
---|
| 22 | } |
---|
| 23 | #endif |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.