[tests] Test with OnlineFileSource
When we introduce OfflineFileSource, the behavior of existing tests should not change.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <mbgl/map/map_context.hpp>
|
||||
#include <mbgl/platform/default/headless_view.hpp>
|
||||
#include <mbgl/platform/default/headless_display.hpp>
|
||||
#include <mbgl/storage/default_file_source.hpp>
|
||||
#include <mbgl/storage/online_file_source.hpp>
|
||||
#include <mbgl/util/thread.hpp>
|
||||
|
||||
using namespace mbgl;
|
||||
@@ -12,7 +12,7 @@ using namespace mbgl;
|
||||
TEST(MapContext, DoubleStyleLoad) {
|
||||
std::shared_ptr<HeadlessDisplay> display = std::make_shared<HeadlessDisplay>();
|
||||
HeadlessView view(display, 1, 512, 512);
|
||||
DefaultFileSource fileSource(nullptr);
|
||||
OnlineFileSource fileSource(nullptr);
|
||||
|
||||
util::Thread<MapContext> context({"Map", util::ThreadType::Map, util::ThreadPriority::Regular},
|
||||
view, fileSource, MapMode::Continuous, GLContextMode::Unique, view.getPixelRatio());
|
||||
|
||||
Reference in New Issue
Block a user