G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
13 UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestResult);
14 
15 namespace UnitTest
16 {
17 
18 class UNITTEST_LINKAGE DeferredTestReporter : public TestReporter
19 {
20 public:
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 
28 private:
29  DeferredTestResultList m_results;
30 };
31 
32 }
33 
34 #endif
35 #endif