summaryrefslogtreecommitdiff
path: root/test/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-03-24 17:04:23 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-14 14:18:19 -0700
commitb55692132ae66b76a5136bf2ccffd112512f01e9 (patch)
treec53ef3be473143f707e26d44d0869e8170b4fea5 /test/map
parent7de9e196d776e5be972d2e75fc5b290b5e01b33c (diff)
downloadqtlocation-mapboxgl-b55692132ae66b76a5136bf2ccffd112512f01e9.tar.gz
[tests] Use StubFileSource where a real FileSource is not required
Diffstat (limited to 'test/map')
-rw-r--r--test/map/map_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/map/map_context.cpp b/test/map/map_context.cpp
index 5de0490557..47777d262e 100644
--- a/test/map/map_context.cpp
+++ b/test/map/map_context.cpp
@@ -1,10 +1,10 @@
#include <mbgl/test/util.hpp>
+#include <mbgl/test/stub_file_source.hpp>
#include <mbgl/map/map_data.hpp>
#include <mbgl/map/map_context.hpp>
#include <mbgl/platform/default/headless_view.hpp>
#include <mbgl/platform/default/headless_display.hpp>
-#include <mbgl/storage/online_file_source.hpp>
#include <mbgl/util/thread.hpp>
#include <mbgl/util/run_loop.hpp>
@@ -15,7 +15,7 @@ TEST(MapContext, DoubleStyleLoad) {
std::shared_ptr<HeadlessDisplay> display = std::make_shared<HeadlessDisplay>();
HeadlessView view(display, 1, 512, 512);
- OnlineFileSource fileSource;
+ StubFileSource fileSource;
util::Thread<MapContext> context({"Map", util::ThreadType::Map, util::ThreadPriority::Regular},
view, fileSource, MapMode::Continuous, GLContextMode::Unique, view.getPixelRatio());