diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-26 18:30:22 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-27 12:34:09 +0300 |
commit | 1b020eeb1195a7afcac35c263220cd3568a4bc69 (patch) | |
tree | 910a01e97c802d488f0706b988336a09877e6e4a /render-test/parser.hpp | |
parent | d0a84cb7d9866d4d46141ef2735697de3302d50b (diff) | |
download | qtlocation-mapboxgl-1b020eeb1195a7afcac35c263220cd3568a4bc69.tar.gz |
[test runner] Test metrics reports. Check metrics results.
Diffstat (limited to 'render-test/parser.hpp')
-rw-r--r-- | render-test/parser.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/render-test/parser.hpp b/render-test/parser.hpp index 3e69968152..483089266e 100644 --- a/render-test/parser.hpp +++ b/render-test/parser.hpp @@ -1,5 +1,7 @@ #pragma once +#include "metadata.hpp" + #include <mbgl/util/rapidjson.hpp> #include <mbgl/util/variant.hpp> @@ -7,12 +9,6 @@ #include <string> #include <vector> -#include "filesystem.hpp" - -struct TestMetadata; -struct TestStatistics; -struct TestPaths; - using ErrorMessage = std::string; using JSONReply = mbgl::variant<mbgl::JSDocument, ErrorMessage>; @@ -20,9 +16,12 @@ using ArgumentsTuple = std::tuple<bool, bool, uint32_t, std::string, std::vector JSONReply readJson(const mbgl::filesystem::path&); std::string serializeJsonValue(const mbgl::JSValue&); +std::string serializeMetrics(const TestMetrics&); std::vector<std::string> readExpectedEntries(const mbgl::filesystem::path& base); +TestMetrics readExpectedMetrics(const mbgl::filesystem::path& path); + ArgumentsTuple parseArguments(int argc, char** argv); std::vector<std::pair<std::string, std::string>> parseIgnores(); |