summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-01-14 18:17:53 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-01-14 18:38:56 -0800
commitf62d41ae05adade69fb08cff3c071b960c25c857 (patch)
tree805afedbea3aec92d46c5278ab99fe925655d6c4 /test
parente44db93f1cb3276dcdc7de8400ca96beda1b1d30 (diff)
downloadqtlocation-mapboxgl-f62d41ae05adade69fb08cff3c071b960c25c857.tar.gz
[core] Restore existing response body
Until #2721 lands we still need this.
Diffstat (limited to 'test')
-rw-r--r--test/storage/cache_revalidate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/storage/cache_revalidate.cpp b/test/storage/cache_revalidate.cpp
index fc65986a17..a440b69aaf 100644
--- a/test/storage/cache_revalidate.cpp
+++ b/test/storage/cache_revalidate.cpp
@@ -49,6 +49,8 @@ TEST_F(Storage, CacheRevalidateSame) {
EXPECT_EQ(nullptr, res2.error);
EXPECT_EQ(false, res2.stale);
EXPECT_TRUE(res2.notModified);
+ ASSERT_TRUE(res2.data.get());
+ EXPECT_EQ("Response", *res2.data);
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.
@@ -107,6 +109,8 @@ TEST_F(Storage, CacheRevalidateModified) {
EXPECT_EQ(nullptr, res2.error);
EXPECT_EQ(false, res2.stale);
EXPECT_TRUE(res2.notModified);
+ ASSERT_TRUE(res2.data.get());
+ EXPECT_EQ("Response", *res2.data);
EXPECT_LT(Seconds::zero(), res2.expires);
EXPECT_EQ(1420070400, res2.modified.count());
EXPECT_EQ("", res2.etag);