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_timeout.cpp | |
parent | ae3f1c79faa34337628d671d071a82ac97a66081 (diff) | |
download | qtlocation-mapboxgl-cb06526b10d9ef44b3606c36aec498822884251e.tar.gz |
[tests] Remove libuv dependency from the tests
Diffstat (limited to 'test/storage/http_timeout.cpp')
-rw-r--r-- | test/storage/http_timeout.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/storage/http_timeout.cpp b/test/storage/http_timeout.cpp index 92c6fe4919..26ce0f5c3a 100644 --- a/test/storage/http_timeout.cpp +++ b/test/storage/http_timeout.cpp @@ -1,7 +1,5 @@ #include "storage.hpp" -#include <uv.h> - #include <mbgl/storage/default_file_source.hpp> #include <mbgl/storage/network_status.hpp> #include <mbgl/util/chrono.hpp> @@ -12,8 +10,8 @@ TEST_F(Storage, HTTPTimeout) { using namespace mbgl; + util::RunLoop loop; DefaultFileSource fs(nullptr); - util::RunLoop loop(uv_default_loop()); int counter = 0; @@ -34,7 +32,7 @@ TEST_F(Storage, HTTPTimeout) { } }); - uv_run(uv_default_loop(), UV_RUN_DEFAULT); + loop.run(); EXPECT_EQ(4, counter); } |