From d2c9750b6d5fba2a242d927d47dfb7e58b66cebb Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Thu, 17 Nov 2016 12:39:46 +0100 Subject: [PATCH] [core] fix up online file source test so it compiles on android --- test/storage/online_file_source.test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/storage/online_file_source.test.cpp b/test/storage/online_file_source.test.cpp index 95b330390..966ef6239 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 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 +}