summaryrefslogtreecommitdiff
path: root/render-test/runner.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-11-21 15:52:23 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-11-22 15:29:25 +0200
commit17a544176807538c9e7a85048b81b014e97566e9 (patch)
treed8f4c267edeb93bb4c097d778dff81921b1df3e4 /render-test/runner.hpp
parenta02ed76d5bfcb2a4623eb3dd1256252ab2cf9281 (diff)
downloadqtlocation-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.hpp5
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&);