diff options
Diffstat (limited to 'test/storage/offline_download.test.cpp')
-rw-r--r-- | test/storage/offline_download.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/storage/offline_download.test.cpp b/test/storage/offline_download.test.cpp index 4db807a204..83fb7f3c18 100644 --- a/test/storage/offline_download.test.cpp +++ b/test/storage/offline_download.test.cpp @@ -61,7 +61,7 @@ public: } util::RunLoop loop; - StubFileSource fileSource; + StubOnlineFileSource fileSource; OfflineDatabase db; std::size_t size = 0; @@ -277,8 +277,8 @@ TEST(OfflineDownload, Activate) { } TEST(OfflineDownload, DoesNotFloodTheFileSourceWithRequests) { - FakeFileSource fileSource; OfflineTest test; + FakeOnlineFileSource fileSource; auto region = test.createRegion(); ASSERT_TRUE(region); OfflineDownload download( @@ -297,7 +297,7 @@ TEST(OfflineDownload, DoesNotFloodTheFileSourceWithRequests) { fileSource.respond(Resource::Kind::Style, test.response("style.json")); test.loop.runOnce(); - EXPECT_EQ(HTTPFileSource::maximumConcurrentRequests(), fileSource.requests.size()); + EXPECT_EQ(fileSource.getMaximumConcurrentRequests(), fileSource.requests.size()); } TEST(OfflineDownload, GetStatusNoResources) { |