PBTestReport.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5CDM_BIND_DECL2(TestCase)
6CDM_BIND_DECL2(TestErrorStatistics)
7CDM_BIND_DECL2(TestReport)
8CDM_BIND_DECL2(TestSuite)
9
10class CDM_DECL PBTestReport
11{
12public:
13
14 static void Load(const CDM_BIND::TestCaseData& src, SETestCase& dst);
15 static CDM_BIND::TestCaseData* Unload(const SETestCase& src);
16 static void Serialize(const CDM_BIND::TestCaseData& src, SETestCase& dst);
17 static void Serialize(const SETestCase& src, CDM_BIND::TestCaseData& dst);
18
19 static void Load(const CDM_BIND::TestErrorStatisticsData& src, SETestErrorStatistics& dst);
20 static CDM_BIND::TestErrorStatisticsData* Unload(const SETestErrorStatistics& src);
21 static void Serialize(const CDM_BIND::TestErrorStatisticsData& src, SETestErrorStatistics& dst);
22 static void Serialize(const SETestErrorStatistics& src, CDM_BIND::TestErrorStatisticsData& dst);
23
24 static void Load(const CDM_BIND::TestReportData& src, SETestReport& dst);
25 static CDM_BIND::TestReportData* Unload(const SETestReport& src);
26 static void Serialize(const CDM_BIND::TestReportData& src, SETestReport& dst);
27 static void Serialize(const SETestReport& src, CDM_BIND::TestReportData& dst);
28
29 static void Load(const CDM_BIND::TestSuiteData& src, SETestSuite& dst);
30 static CDM_BIND::TestSuiteData* Unload(const SETestSuite& src);
31 static void Serialize(const CDM_BIND::TestSuiteData& src, SETestSuite& dst);
32 static void Serialize(const SETestSuite& src, CDM_BIND::TestSuiteData& dst);
33
34 static bool SerializeToString(const SETestReport& src, std::string& output, eSerializationFormat m);
35 static bool SerializeToFile(const SETestReport& src, const std::string& filename);
36 static bool SerializeFromString(const std::string& src, SETestReport& dst, eSerializationFormat m);
37 static bool SerializeFromFile(const std::string& filename, SETestReport& dst);
38};
Definition: PBTestReport.h:11
Definition: SETestCase.h:9
Definition: SETestErrorStatistics.h:13
Definition: SETestReport.h:10
Definition: SETestSuite.h:10

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.