G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
DeferredTestReporter.h
1#ifndef UNITTEST_DEFERREDTESTREPORTER_H
2#define UNITTEST_DEFERREDTESTREPORTER_H
3
4#include "Config.h"
5
6#ifndef UNITTEST_NO_DEFERRED_REPORTER
7
8#include "TestReporter.h"
9#include "DeferredTestResult.h"
10
11#include <vector>
12
13UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestResult);
14
15namespace UnitTest
16{
17
18class UNITTEST_LINKAGE DeferredTestReporter : public TestReporter
19{
20public:
21 virtual void ReportTestStart(TestDetails const& details);
22 virtual void ReportFailure(TestDetails const& details, char const* failure);
23 virtual void ReportTestFinish(TestDetails const& details, float secondsElapsed);
24
25 typedef std::vector< DeferredTestResult > DeferredTestResultList;
26 DeferredTestResultList& GetResults();
27
28private:
29 DeferredTestResultList m_results;
30};
31
32}
33
34#endif
35#endif