summaryrefslogtreecommitdiff
path: root/test/storage
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2016-11-17 12:39:46 +0100
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2016-11-27 18:50:24 +0200
commitd2c9750b6d5fba2a242d927d47dfb7e58b66cebb (patch)
tree61dab2fa46438ba7e8d033be46f0b044a2068801 /test/storage
parent3deade2dcd442fee2196326b44034e943597611c (diff)
downloadqtlocation-mapboxgl-d2c9750b6d5fba2a242d927d47dfb7e58b66cebb.tar.gz
[core] fix up online file source test so it compiles on android
Diffstat (limited to 'test/storage')
-rw-r--r--test/storage/online_file_source.test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/storage/online_file_source.test.cpp b/test/storage/online_file_source.test.cpp
index 95b330390f..966ef6239a 100644
--- a/test/storage/online_file_source.test.cpp
+++ b/test/storage/online_file_source.test.cpp
@@ -149,7 +149,7 @@ TEST(OnlineFileSource, TEST_REQUIRES_SERVER(RetryDelayOnExpiredTile)) {
std::unique_ptr<AsyncRequest> req = fs.request(resource, [&](Response res) {
counter++;
EXPECT_EQ(nullptr, res.error);
- EXPECT_GT(util::now(), res.expires);
+ EXPECT_GT(util::now(), *res.expires);
});
util::Timer timer;
@@ -173,14 +173,14 @@ TEST(OnlineFileSource, TEST_REQUIRES_SERVER(RetryOnClockSkew)) {
switch (counter++) {
case 0: {
EXPECT_EQ(nullptr, res.error);
- EXPECT_GT(util::now(), res.expires);
+ EXPECT_GT(util::now(), *res.expires);
} break;
case 1: {
EXPECT_EQ(nullptr, res.error);
auto now = util::now();
- EXPECT_LT(now + Seconds(40), res.expires) << "Expiration not interpolated to 60s";
- EXPECT_GT(now + Seconds(80), res.expires) << "Expiration not interpolated to 60s";
+ EXPECT_LT(now + Seconds(40), *res.expires) << "Expiration not interpolated to 60s";
+ EXPECT_GT(now + Seconds(80), *res.expires) << "Expiration not interpolated to 60s";
loop.stop();
} break;
@@ -413,4 +413,4 @@ TEST(OnlineFileSource, ChangeAPIBaseURL){
const std::string customURL = "test.domain";
fs.setAPIBaseURL(customURL);
EXPECT_EQ(customURL, fs.getAPIBaseURL());
-} \ No newline at end of file
+}