diff options
Diffstat (limited to 'render-test/runner.hpp')
-rw-r--r-- | render-test/runner.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/render-test/runner.hpp b/render-test/runner.hpp new file mode 100644 index 0000000000..cbc0f42546 --- /dev/null +++ b/render-test/runner.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include <mbgl/gfx/headless_frontend.hpp> +#include <mbgl/map/map.hpp> + +#include <memory> + +struct TestMetadata; + +class TestRunner { +public: + TestRunner() = default; + + bool run(TestMetadata&); + void reset(); + +private: + bool runOperations(const std::string& key, TestMetadata&); + bool checkImage(mbgl::PremultipliedImage&& image, TestMetadata&); + + struct Impl { + Impl(const TestMetadata&); + + mbgl::HeadlessFrontend frontend; + mbgl::Map map; + }; + std::unordered_map<std::string, std::unique_ptr<Impl>> maps; +};
\ No newline at end of file |