summaryrefslogtreecommitdiff
path: root/test/algorithm
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-05-27 16:55:59 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-06-10 12:42:14 +0200
commitfce5dd5f6afd4864456197a5cfec20a5e8cd0e6a (patch)
treece25f4f5fab479b60c2a20e2fa480e93c3d27836 /test/algorithm
parent8a8f828e41c24afe4dc8df701f149c3d238c054a (diff)
downloadqtlocation-mapboxgl-fce5dd5f6afd4864456197a5cfec20a5e8cd0e6a.tar.gz
[core] TileData objects now store whether an optional load attempt was performed
Diffstat (limited to 'test/algorithm')
-rw-r--r--test/algorithm/mock.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/algorithm/mock.hpp b/test/algorithm/mock.hpp
index 28c78854be..ff58499303 100644
--- a/test/algorithm/mock.hpp
+++ b/test/algorithm/mock.hpp
@@ -29,11 +29,17 @@ struct MockBucket {};
struct MockTileData {
MockTileData(const mbgl::OverscaledTileID& tileID_) : tileID(tileID_) {}
- bool isRenderable() {
+
+ bool hasTriedOptional() const {
+ return triedOptional;
+ }
+
+ bool isRenderable() const {
return renderable;
}
bool renderable = false;
+ bool triedOptional = false;
const mbgl::OverscaledTileID tileID;
};