summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-24 13:13:01 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-24 15:43:13 +0300
commit424cf2020700f4e8ff4cef6906c5ed85674a1250 (patch)
tree30e1a476724c07bcd1dd1a24d388ba2006ff29c7 /test
parent4fb75ba32cf98f04ad817ff51407c0a428202a7a (diff)
downloadqtlocation-mapboxgl-424cf2020700f4e8ff4cef6906c5ed85674a1250.tar.gz
[core] Revert coalescing requests to the client for the same missing image
Diffstat (limited to 'test')
-rw-r--r--test/renderer/image_manager.test.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/renderer/image_manager.test.cpp b/test/renderer/image_manager.test.cpp
index 20c0a3a7f3..16700d713f 100644
--- a/test/renderer/image_manager.test.cpp
+++ b/test/renderer/image_manager.test.cpp
@@ -187,30 +187,6 @@ TEST(ImageManager, OnStyleImageMissingBeforeSpriteLoaded) {
EXPECT_EQ(observer.count, 1);
ASSERT_TRUE(notified);
- // Repeated request of the same image shall not result another
- // `ImageManagerObserver.onStyleImageMissing()` call.
- imageManager.getImages(requestor, std::make_pair(dependencies, ++imageCorrelationID));
- runLoop.runOnce();
-
- EXPECT_EQ(observer.count, 1);
-
- // Request for updated dependencies must be dispatched to the
- // observer.
- dependencies.emplace("post", ImageType::Icon);
- imageManager.getImages(requestor, std::make_pair(dependencies, ++imageCorrelationID));
- runLoop.runOnce();
-
- EXPECT_EQ(observer.count, 2);
-
- // Another requestor shall not have pending requests for already obtained images.
- StubImageRequestor anotherRequestor(imageManager);
- imageManager.getImages(anotherRequestor, std::make_pair(dependencies, ++imageCorrelationID));
- ASSERT_FALSE(anotherRequestor.hasPendingRequests());
-
- dependencies.emplace("unfamiliar", ImageType::Icon);
- imageManager.getImages(anotherRequestor, std::make_pair(dependencies, ++imageCorrelationID));
- EXPECT_TRUE(anotherRequestor.hasPendingRequests());
- EXPECT_TRUE(anotherRequestor.hasPendingRequest("unfamiliar"));
}
TEST(ImageManager, OnStyleImageMissingAfterSpriteLoaded) {