[core] Add an explicit "not modified" indicator to Response
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user