diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-11-13 17:47:22 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-12-01 11:49:02 +0200 |
commit | cb06526b10d9ef44b3606c36aec498822884251e (patch) | |
tree | 822be48cb08a3cb51074689fbef4f92578a556ed /test/storage/http_other_loop.cpp | |
parent | ae3f1c79faa34337628d671d071a82ac97a66081 (diff) | |
download | qtlocation-mapboxgl-cb06526b10d9ef44b3606c36aec498822884251e.tar.gz |
[tests] Remove libuv dependency from the tests
Diffstat (limited to 'test/storage/http_other_loop.cpp')
-rw-r--r-- | test/storage/http_other_loop.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/storage/http_other_loop.cpp b/test/storage/http_other_loop.cpp index ec373a7221..d9c90397ad 100644 --- a/test/storage/http_other_loop.cpp +++ b/test/storage/http_other_loop.cpp @@ -1,7 +1,5 @@ #include "storage.hpp" -#include <uv.h> - #include <mbgl/storage/default_file_source.hpp> #include <mbgl/util/chrono.hpp> #include <mbgl/util/run_loop.hpp> @@ -12,8 +10,8 @@ TEST_F(Storage, HTTPOtherLoop) { using namespace mbgl; // This file source launches a separate thread to do the processing. + util::RunLoop loop; DefaultFileSource fs(nullptr); - util::RunLoop loop(uv_default_loop()); std::unique_ptr<FileRequest> req = fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test" }, [&](Response res) { @@ -29,5 +27,5 @@ TEST_F(Storage, HTTPOtherLoop) { HTTPOtherLoop.finish(); }); - uv_run(uv_default_loop(), UV_RUN_DEFAULT); + loop.run(); } |