diff options
Diffstat (limited to 'render-test/parser.hpp')
-rw-r--r-- | render-test/parser.hpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/render-test/parser.hpp b/render-test/parser.hpp index 94fb212944..3d79ac668a 100644 --- a/render-test/parser.hpp +++ b/render-test/parser.hpp @@ -5,31 +5,27 @@ #include <mbgl/util/rapidjson.hpp> #include <mbgl/util/variant.hpp> -#include <tuple> #include <string> +#include <tuple> #include <vector> +class Manifest; + using ErrorMessage = std::string; using JSONReply = mbgl::variant<mbgl::JSDocument, ErrorMessage>; -using ArgumentsTuple = std::tuple<bool, bool, uint32_t, std::string, std::vector<TestPaths>>; - 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); +std::vector<std::string> readExpectedImageEntries(const mbgl::filesystem::path& base); +std::vector<std::string> readExpectedJSONEntries(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(); - -TestMetadata parseTestMetadata(const TestPaths& paths); +TestMetadata parseTestMetadata(const TestPaths& paths, const Manifest& manifest); std::string createResultPage(const TestStatistics&, const std::vector<TestMetadata>&, bool shuffle, uint32_t seed); -std::string localizeURL(const std::string& url); - -void localizeSourceURLs(mbgl::JSValue& root, mbgl::JSDocument& document); -void localizeStyleURLs(mbgl::JSValue& root, mbgl::JSDocument& document);
\ No newline at end of file +std::string toJSON(const mbgl::Value& value, unsigned indent, bool singleLine); +std::string toJSON(const std::vector<mbgl::Feature>& features, unsigned indent, bool singleLine); |