PageRenderTime 25ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/extlibs/UnitTest++/include/DeferredTestReporter.h

https://bitbucket.org/hugoruscitti/pilascpp
C++ Header | 28 lines | 20 code | 8 blank | 0 comment | 0 complexity | 659eb66033b6e2074e579656345e0b05 MD5 | raw file
 1#ifndef UNITTEST_DEFERREDTESTREPORTER_H
 2#define UNITTEST_DEFERREDTESTREPORTER_H
 3
 4#include "TestReporter.h"
 5#include "DeferredTestResult.h"
 6
 7#include <vector>
 8
 9namespace UnitTest
10{
11
12class DeferredTestReporter : public TestReporter
13{
14public:
15    virtual void ReportTestStart(TestDetails const& details);
16    virtual void ReportFailure(TestDetails const& details, char const* failure);
17    virtual void ReportTestFinish(TestDetails const& details, float secondsElapsed);
18
19    typedef std::vector< DeferredTestResult > DeferredTestResultList;
20    DeferredTestResultList& GetResults();
21
22private:
23    DeferredTestResultList m_results;
24};
25
26}
27
28#endif