diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-24 11:33:09 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-14 14:18:19 -0700 |
commit | 6d88a23a60bc0a6dc9945bf09a659d15dd827192 (patch) | |
tree | 502272909f636b2eef8b40636ce6330211753da1 /test | |
parent | 7bb74ac8db190c8e73c013879b95dc85ea38c2ae (diff) | |
download | qtlocation-mapboxgl-6d88a23a60bc0a6dc9945bf09a659d15dd827192.tar.gz |
[core] Remove internal threading from OnlineFileRequest
There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity.
Diffstat (limited to 'test')
-rw-r--r-- | test/map/map_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/map/map_context.cpp b/test/map/map_context.cpp index a1152d68e7..5de0490557 100644 --- a/test/map/map_context.cpp +++ b/test/map/map_context.cpp @@ -6,10 +6,13 @@ #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> using namespace mbgl; TEST(MapContext, DoubleStyleLoad) { + util::RunLoop loop; + std::shared_ptr<HeadlessDisplay> display = std::make_shared<HeadlessDisplay>(); HeadlessView view(display, 1, 512, 512); OnlineFileSource fileSource; |