diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-21 15:52:23 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-22 15:29:25 +0200 |
commit | 17a544176807538c9e7a85048b81b014e97566e9 (patch) | |
tree | d8f4c267edeb93bb4c097d778dff81921b1df3e4 /render-test/runner.hpp | |
parent | a02ed76d5bfcb2a4623eb3dd1256252ab2cf9281 (diff) | |
download | qtlocation-mapboxgl-17a544176807538c9e7a85048b81b014e97566e9.tar.gz |
[test-runner] Add render test runner options for injecting probes
This allows injection of memory, gfx and network probes before and
after operations defined in render test are run.
Diffstat (limited to 'render-test/runner.hpp')
-rw-r--r-- | render-test/runner.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/render-test/runner.hpp b/render-test/runner.hpp index 4f80286c0b..c31d672ba0 100644 --- a/render-test/runner.hpp +++ b/render-test/runner.hpp @@ -15,7 +15,7 @@ struct TestMetadata; class TestRunner { public: explicit TestRunner(Manifest); - bool run(TestMetadata&); + bool run(TestMetadata&, const std::set<std::string>&); void reset(); // Manifest @@ -24,6 +24,9 @@ public: private: bool runOperations(const std::string& key, TestMetadata&, RunContext&); + bool runInjectedProbesBegin(TestMetadata&, const std::set<std::string>&, RunContext&); + bool runInjectedProbesEnd(TestMetadata&, const std::set<std::string>&, RunContext&, mbgl::gfx::RenderingStats); + bool checkQueryTestResults(mbgl::PremultipliedImage&& actualImage, std::vector<mbgl::Feature>&& features, TestMetadata&); |