summaryrefslogtreecommitdiff
path: root/test/storage/http_other_loop.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-23 14:55:12 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-23 14:55:12 -0800
commit7a6076ea9df72f34565d8f316f8c5c19279677b8 (patch)
tree0018a698e9fa97273c5b515b71ccf0b8f7398253 /test/storage/http_other_loop.cpp
parentd238e00d9b1e78e98392ac2cab30f8a2fcd3c1fd (diff)
downloadqtlocation-mapboxgl-7a6076ea9df72f34565d8f316f8c5c19279677b8.tar.gz
[tests] Test with OnlineFileSource
When we introduce OfflineFileSource, the behavior of existing tests should not change.
Diffstat (limited to 'test/storage/http_other_loop.cpp')
-rw-r--r--test/storage/http_other_loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/storage/http_other_loop.cpp b/test/storage/http_other_loop.cpp
index d9c90397ad..9d98f1878b 100644
--- a/test/storage/http_other_loop.cpp
+++ b/test/storage/http_other_loop.cpp
@@ -1,6 +1,6 @@
#include "storage.hpp"
-#include <mbgl/storage/default_file_source.hpp>
+#include <mbgl/storage/online_file_source.hpp>
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/run_loop.hpp>
@@ -11,7 +11,7 @@ TEST_F(Storage, HTTPOtherLoop) {
// This file source launches a separate thread to do the processing.
util::RunLoop loop;
- DefaultFileSource fs(nullptr);
+ OnlineFileSource fs(nullptr);
std::unique_ptr<FileRequest> req = fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test" },
[&](Response res) {