summaryrefslogtreecommitdiff
path: root/render-test/runner.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-03 14:31:49 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-08 13:07:12 +0200
commitaf8092a86fc5465de3fe0bb2c9e1c24f3fec5965 (patch)
tree2925a8bf49759626ba1bf914b1562174a17c8d83 /render-test/runner.hpp
parentf0d2a2f636bf45889cf8082ba42e0d22875c1e3a (diff)
downloadqtlocation-mapboxgl-af8092a86fc5465de3fe0bb2c9e1c24f3fec5965.tar.gz
[render-test] Use image from the cache for addImage operation
Instead of trying to read it from the filesystem.
Diffstat (limited to 'render-test/runner.hpp')
-rw-r--r--render-test/runner.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/render-test/runner.hpp b/render-test/runner.hpp
index 75e552ead7..e6027e335c 100644
--- a/render-test/runner.hpp
+++ b/render-test/runner.hpp
@@ -2,6 +2,7 @@
#include <mbgl/gfx/headless_frontend.hpp>
#include <mbgl/map/map.hpp>
+#include <mbgl/storage/file_source.hpp>
#include "manifest_parser.hpp"
@@ -54,11 +55,12 @@ private:
void checkProbingResults(TestMetadata&);
struct Impl {
- Impl(const TestMetadata&, const Manifest&);
+ Impl(const TestMetadata&, const mbgl::ResourceOptions&);
~Impl();
std::unique_ptr<TestRunnerMapObserver> observer;
mbgl::HeadlessFrontend frontend;
+ std::shared_ptr<mbgl::FileSource> fileSource;
mbgl::Map map;
};
std::unordered_map<std::string, std::unique_ptr<Impl>> maps;