aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/printers/JSONPrinter.h
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-09-12 15:51:33 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit5b61fd3fbaf41031232296abde56258d12ba3340 (patch)
treea44cc3071d4d7b91480cb672c3ed4536857bb4e6 /tests/framework/printers/JSONPrinter.h
parenta3adb3a3bdce1f2ef764c5d5098e99695323f0a3 (diff)
downloadComputeLibrary-5b61fd3fbaf41031232296abde56258d12ba3340.tar.gz
COMPMID-417: Fix validation
Change-Id: I7a745037136bc6e02d177f65fe4f4cd43873b98e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87406 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/framework/printers/JSONPrinter.h')
-rw-r--r--tests/framework/printers/JSONPrinter.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/framework/printers/JSONPrinter.h b/tests/framework/printers/JSONPrinter.h
index 18bd4380b0..a2811ea41b 100644
--- a/tests/framework/printers/JSONPrinter.h
+++ b/tests/framework/printers/JSONPrinter.h
@@ -26,6 +26,8 @@
#include "Printer.h"
+#include <list>
+
namespace arm_compute
{
namespace test
@@ -47,17 +49,22 @@ public:
void print_test_footer() override;
void print_errors_header() override;
void print_errors_footer() override;
- void print_error(const std::exception &error) override;
+ void print_error(const std::exception &error, bool expected) override;
void print_info(const std::string &info) override;
void print_measurements(const Profiler::MeasurementsMap &measurements) override;
private:
void print_separator(bool &flag);
+ template <typename T>
+ void print_strings(T &&first, T &&last);
+
+ std::list<std::string> _infos{};
+ std::list<std::string> _errors{};
+ std::list<std::string> _expected_errors{};
bool _first_entry{ true };
bool _first_test{ true };
bool _first_test_entry{ true };
- bool _first_error{ true };
};
} // namespace framework
} // namespace test