From 47e24eece15121c917a30166037cbb072bb6a443 Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Wed, 21 Nov 2012 12:37:38 -0500 Subject: Add UnitTest++ source code into ITW, without integration. --- tests/UnitTest++/src/DeferredTestReporter.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/UnitTest++/src/DeferredTestReporter.h (limited to 'tests/UnitTest++/src/DeferredTestReporter.h') diff --git a/tests/UnitTest++/src/DeferredTestReporter.h b/tests/UnitTest++/src/DeferredTestReporter.h new file mode 100644 index 0000000..026ed05 --- /dev/null +++ b/tests/UnitTest++/src/DeferredTestReporter.h @@ -0,0 +1,28 @@ +#ifndef UNITTEST_DEFERREDTESTREPORTER_H +#define UNITTEST_DEFERREDTESTREPORTER_H + +#include "TestReporter.h" +#include "DeferredTestResult.h" + +#include + +namespace UnitTest +{ + +class DeferredTestReporter : public TestReporter +{ +public: + virtual void ReportTestStart(TestDetails const& details); + virtual void ReportFailure(TestDetails const& details, char const* failure); + virtual void ReportTestFinish(TestDetails const& details, float secondsElapsed); + + typedef std::vector< DeferredTestResult > DeferredTestResultList; + DeferredTestResultList& GetResults(); + +private: + DeferredTestResultList m_results; +}; + +} + +#endif -- cgit v1.2.3