summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-01 14:05:37 -0700
committerKonstantin Käfer <mail@kkaefer.com>2015-04-02 12:28:12 +0200
commit9331acf8e68e428e70c1f73ccb90147e71c586fd (patch)
treedf0d36b3192e96f11817ca9caa490e7075a96eeb /test
parent440864063e916e92eed1b1fe15453e067cbf2781 (diff)
downloadqtlocation-mapboxgl-9331acf8e68e428e70c1f73ccb90147e71c586fd.tar.gz
Add typedefs for std::chrono::steady_clock types
Diffstat (limited to 'test')
-rw-r--r--test/storage/http_header_parsing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/storage/http_header_parsing.cpp b/test/storage/http_header_parsing.cpp
index 271460387c..e4d86fcc27 100644
--- a/test/storage/http_header_parsing.cpp
+++ b/test/storage/http_header_parsing.cpp
@@ -3,6 +3,7 @@
#include <uv.h>
#include <mbgl/storage/default_file_source.hpp>
+#include <mbgl/util/chrono.hpp>
#include <cmath>
@@ -29,7 +30,7 @@ TEST_F(Storage, HTTPHeaderParsing) {
});
int64_t now = std::chrono::duration_cast<std::chrono::seconds>(
- std::chrono::system_clock::now().time_since_epoch()).count();
+ SystemClock::now().time_since_epoch()).count();
fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test?cachecontrol=max-age=120" },
uv_default_loop(), env, [&](const Response &res) {