00001 #ifndef UNITTEST_TESTREPORTER_H 00002 #define UNITTEST_TESTREPORTER_H 00003 00004 namespace UnitTest { 00005 00006 class TestDetails; 00007 00008 class TestReporter 00009 { 00010 public: 00011 virtual ~TestReporter(); 00012 00013 virtual void ReportTestStart(TestDetails const& test) = 0; 00014 virtual void ReportFailure(TestDetails const& test, char const* failure) = 0; 00015 virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed) = 0; 00016 virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed) = 0; 00017 }; 00018 00019 } 00020 #endif