summaryrefslogtreecommitdiff
path: root/render-test/metadata.hpp
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2019-11-27 11:08:55 +0200
committerGitHub <noreply@github.com>2019-11-27 11:08:55 +0200
commit11321497da66b1f4b05dc23a9b1b0b434018b661 (patch)
treee948f74c1ea5ae1106209c0b691fe43de7d0e50a /render-test/metadata.hpp
parent5c271dba2417a235003bf12ea419e890ed0fb59b (diff)
downloadqtlocation-mapboxgl-11321497da66b1f4b05dc23a9b1b0b434018b661.tar.gz
[render-test] Add metric_paths into Manifest (#15973)
* [render-test]Add expected metrics path in manifest file * seperate metrics.json and expected.png * fix expected path parsing * keep expectation path if update is enabled
Diffstat (limited to 'render-test/metadata.hpp')
-rw-r--r--render-test/metadata.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp
index 2b007a445c..32eb3455ad 100644
--- a/render-test/metadata.hpp
+++ b/render-test/metadata.hpp
@@ -29,11 +29,16 @@ struct TestStatistics {
struct TestPaths {
TestPaths() = default;
- TestPaths(mbgl::filesystem::path stylePath_, std::vector<mbgl::filesystem::path> expectations_)
- : stylePath(std::move(stylePath_)), expectations(std::move(expectations_)) {}
+ TestPaths(mbgl::filesystem::path stylePath_,
+ std::vector<mbgl::filesystem::path> expectations_,
+ std::vector<mbgl::filesystem::path> expectedMetrics_)
+ : stylePath(std::move(stylePath_)),
+ expectations(std::move(expectations_)),
+ expectedMetrics(std::move(expectedMetrics_)) {}
mbgl::filesystem::path stylePath;
std::vector<mbgl::filesystem::path> expectations;
+ std::vector<mbgl::filesystem::path> expectedMetrics;
std::string defaultExpectations() const {
assert(!expectations.empty());