summaryrefslogtreecommitdiff
path: root/render-test
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-13 20:27:16 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-13 21:07:56 +0200
commit1fc4cd649ea8375bb259c0c2278cdb3c3b865bfa (patch)
treeec7ec07c7bb0d15516b8f7f0c8556bb8bfacd2dd /render-test
parentaa2a26766a2af94ce7d3207c74e30c16cefaf4d3 (diff)
downloadqtlocation-mapboxgl-1fc4cd649ea8375bb259c0c2278cdb3c3b865bfa.tar.gz
[test-runner] Fix network probe
Diffstat (limited to 'render-test')
-rw-r--r--render-test/runner.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/render-test/runner.cpp b/render-test/runner.cpp
index 88db5ba9b4..2f97f63e49 100644
--- a/render-test/runner.cpp
+++ b/render-test/runner.cpp
@@ -550,11 +550,15 @@ TestOperations getBeforeOperations(const Manifest& manifest) {
});
continue;
}
+
if (networkProbeOp == probe) {
result.emplace_back([](TestContext& ctx) {
- assert(!ctx.gfxProbeActive);
- ctx.gfxProbeActive = true;
- ctx.baselineGfxProbe = ctx.activeGfxProbe;
+ assert(!ProxyFileSource::isTrackingActive());
+ ProxyFileSource::setTrackingActive(true);
+ ctx.getMetadata().metrics.network.emplace(
+ std::piecewise_construct,
+ std::forward_as_tuple(networkProbeOp + mark),
+ std::forward_as_tuple(ProxyFileSource::getRequestCount(), ProxyFileSource::getTransferredSize()));
return true;
});
continue;