summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2016-11-10 15:02:13 +0100
committerJesse Bounds <jesse@rebounds.net>2016-11-13 16:53:11 -0800
commit13a118e3bd6060a915ae72b621bc575b79d5bf3e (patch)
treefd0e59027600461ec7b1ca177863f994a758b96f /test
parentb7818f2019c24608a17bdfb0f3efb21e6fb26217 (diff)
downloadqtlocation-mapboxgl-13a118e3bd6060a915ae72b621bc575b79d5bf3e.tar.gz
[core] symbol layer - recalculate style on icon/text size changes
Diffstat (limited to 'test')
-rw-r--r--test/src/mbgl/test/stub_layer_observer.hpp6
-rw-r--r--test/style/style_layer.test.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/src/mbgl/test/stub_layer_observer.hpp b/test/src/mbgl/test/stub_layer_observer.hpp
index f346080b10..07797ce921 100644
--- a/test/src/mbgl/test/stub_layer_observer.hpp
+++ b/test/src/mbgl/test/stub_layer_observer.hpp
@@ -22,12 +22,12 @@ public:
if (layerPaintPropertyChanged) layerPaintPropertyChanged(layer);
}
- void onLayerLayoutPropertyChanged(Layer& layer) override {
- if (layerLayoutPropertyChanged) layerLayoutPropertyChanged(layer);
+ void onLayerLayoutPropertyChanged(Layer& layer, const char * property) override {
+ if (layerLayoutPropertyChanged) layerLayoutPropertyChanged(layer, property);
}
std::function<void (Layer&)> layerFilterChanged;
std::function<void (Layer&)> layerVisibilityChanged;
std::function<void (Layer&)> layerPaintPropertyChanged;
- std::function<void (Layer&)> layerLayoutPropertyChanged;
+ std::function<void (Layer&, const char *)> layerLayoutPropertyChanged;
};
diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp
index 08952e3799..f6dcc684c7 100644
--- a/test/style/style_layer.test.cpp
+++ b/test/style/style_layer.test.cpp
@@ -246,7 +246,7 @@ TEST(Layer, Observer) {
// Notifies observer on layout property change.
bool layoutPropertyChanged = false;
- observer.layerLayoutPropertyChanged = [&] (Layer& layer_) {
+ observer.layerLayoutPropertyChanged = [&] (Layer& layer_, const char *) {
EXPECT_EQ(layer.get(), &layer_);
layoutPropertyChanged = true;
};