diff options
Diffstat (limited to 'test/storage/http_header_parsing.cpp')
-rw-r--r-- | test/storage/http_header_parsing.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/storage/http_header_parsing.cpp b/test/storage/http_header_parsing.cpp index bb2dccc6e7..9f48e995b5 100644 --- a/test/storage/http_header_parsing.cpp +++ b/test/storage/http_header_parsing.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> @@ -13,8 +11,8 @@ TEST_F(Storage, HTTPExpiresParsing) { using namespace mbgl; + util::RunLoop loop; DefaultFileSource fs(nullptr); - util::RunLoop loop(uv_default_loop()); std::unique_ptr<FileRequest> req1 = fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test?modified=1420794326&expires=1420797926&etag=foo" }, @@ -31,7 +29,7 @@ TEST_F(Storage, HTTPExpiresParsing) { HTTPExpiresTest.finish(); }); - uv_run(uv_default_loop(), UV_RUN_DEFAULT); + loop.run(); } TEST_F(Storage, HTTPCacheControlParsing) { @@ -39,8 +37,8 @@ TEST_F(Storage, HTTPCacheControlParsing) { using namespace mbgl; + util::RunLoop loop; DefaultFileSource fs(nullptr); - util::RunLoop loop(uv_default_loop()); const Seconds now = toSeconds(SystemClock::now()); @@ -58,5 +56,5 @@ TEST_F(Storage, HTTPCacheControlParsing) { HTTPCacheControlTest.finish(); }); - uv_run(uv_default_loop(), UV_RUN_DEFAULT); + loop.run(); } |