diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-13 16:47:36 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-14 13:46:03 -0800 |
commit | 2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a (patch) | |
tree | b43c6d0bbb86988628c611f21ba7d2cc15340c40 /test | |
parent | 2ee1fe41786742332d190b01e28ba88a72c59f43 (diff) | |
download | qtlocation-mapboxgl-2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a.tar.gz |
[core] Add an explicit "not modified" indicator to Response
Diffstat (limited to 'test')
-rw-r--r-- | test/storage/cache_revalidate.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/storage/cache_revalidate.cpp b/test/storage/cache_revalidate.cpp index ffc622f37c..fc65986a17 100644 --- a/test/storage/cache_revalidate.cpp +++ b/test/storage/cache_revalidate.cpp @@ -48,9 +48,7 @@ TEST_F(Storage, CacheRevalidateSame) { EXPECT_EQ(nullptr, res2.error); EXPECT_EQ(false, res2.stale); - ASSERT_TRUE(res2.data.get()); - EXPECT_EQ("Response", *res2.data); - // We use this to indicate that a 304 reply came back. + EXPECT_TRUE(res2.notModified); EXPECT_LT(Seconds::zero(), res2.expires); EXPECT_EQ(Seconds::zero(), res2.modified); // We're not sending the ETag in the 304 reply, but it should still be there. @@ -108,9 +106,7 @@ TEST_F(Storage, CacheRevalidateModified) { EXPECT_EQ(nullptr, res2.error); EXPECT_EQ(false, res2.stale); - ASSERT_TRUE(res2.data.get()); - EXPECT_EQ("Response", *res2.data); - // We use this to indicate that a 304 reply came back. + EXPECT_TRUE(res2.notModified); EXPECT_LT(Seconds::zero(), res2.expires); EXPECT_EQ(1420070400, res2.modified.count()); EXPECT_EQ("", res2.etag); |