diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-04 10:59:36 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-04 13:18:14 -0800 |
commit | 19aa090bdcff083c039c0767908c9608ad853403 (patch) | |
tree | 8eee0222ccca67bf5f2968bb04fc6a7c2bb14616 /test/style/source.cpp | |
parent | d7db9c775abafd852c3b935045443387191bf823 (diff) | |
download | qtlocation-mapboxgl-19aa090bdcff083c039c0767908c9608ad853403.tar.gz |
[tests] Don't call the callback for cancelled responses
StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback".
Fixes #3784
Diffstat (limited to 'test/style/source.cpp')
-rw-r--r-- | test/style/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/style/source.cpp b/test/style/source.cpp index d1944f3842..528059ae9f 100644 --- a/test/style/source.cpp +++ b/test/style/source.cpp @@ -240,7 +240,7 @@ TEST(Source, RasterTileCancel) { test.fileSource.tileResponse = [&] (const Resource&) { test.end(); - return Response(); + return optional<Response>(); }; test.observer.tileLoaded = [&] (Source&, const TileID&, bool) { @@ -267,7 +267,7 @@ TEST(Source, VectorTileCancel) { test.fileSource.tileResponse = [&] (const Resource&) { test.end(); - return Response(); + return optional<Response>(); }; test.observer.tileLoaded = [&] (Source&, const TileID&, bool) { |