summaryrefslogtreecommitdiff
path: root/test/src/mbgl/test/stub_style_observer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/mbgl/test/stub_style_observer.hpp')
-rw-r--r--test/src/mbgl/test/stub_style_observer.hpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/src/mbgl/test/stub_style_observer.hpp b/test/src/mbgl/test/stub_style_observer.hpp
index 4de3430fcc..aa780121f5 100644
--- a/test/src/mbgl/test/stub_style_observer.hpp
+++ b/test/src/mbgl/test/stub_style_observer.hpp
@@ -34,19 +34,15 @@ public:
if (sourceError) sourceError(source, error);
}
- void onTileLoaded(Source& source, const OverscaledTileID& tileID, TileLoadState loadState) override {
- if (tileLoaded) tileLoaded(source, tileID, loadState);
- }
+ void onTileChanged(Source& source, const OverscaledTileID& tileID) override {
+ if (tileChanged) tileChanged(source, tileID);
+ };
void
onTileError(Source& source, const OverscaledTileID& tileID, std::exception_ptr error) override {
if (tileError) tileError(source, tileID, error);
}
- void onTileUpdated(Source& source, const OverscaledTileID& tileID) override {
- if (tileUpdated) tileUpdated(source, tileID);
- };
-
void onResourceError(std::exception_ptr error) override {
if (resourceError) resourceError(error);
};
@@ -57,8 +53,7 @@ public:
std::function<void (std::exception_ptr)> spriteError;
std::function<void (Source&)> sourceLoaded;
std::function<void (Source&, std::exception_ptr)> sourceError;
- std::function<void (Source&, const OverscaledTileID&, TileLoadState)> tileLoaded;
+ std::function<void (Source&, const OverscaledTileID&)> tileChanged;
std::function<void (Source&, const OverscaledTileID&, std::exception_ptr)> tileError;
- std::function<void (Source&, const OverscaledTileID&)> tileUpdated;
std::function<void (std::exception_ptr)> resourceError;
};