diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 18:46:27 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 18:46:27 +0000 |
commit | 3e221547889de746a6210b1549842f6875585151 (patch) | |
tree | ef565336f2e0a4b3e999d494531b198b25afdc03 /net/http/http_response_headers_unittest.cc | |
parent | b69277df648bcfce684dfe18e2f13073897fb195 (diff) | |
download | chromium_src-3e221547889de746a6210b1549842f6875585151.zip chromium_src-3e221547889de746a6210b1549842f6875585151.tar.gz chromium_src-3e221547889de746a6210b1549842f6875585151.tar.bz2 |
HTTP Cache: Apply all freshness tests to Partial content entries.
BUG=24057
TEST=unittest
Review URL: http://codereview.chromium.org/267122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers_unittest.cc')
-rw-r--r-- | net/http/http_response_headers_unittest.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index 448accb..d2ff378 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -715,6 +715,18 @@ TEST(HttpResponseHeadersTest, RequiresValidation) { "\n", false }, + { "HTTP/1.1 203 Non-Authoritative Information\n" + "date: Wed, 28 Nov 2007 00:40:11 GMT\n" + "last-modified: Wed, 27 Nov 2007 08:00:00 GMT\n" + "\n", + false + }, + { "HTTP/1.1 206 Partial Content\n" + "date: Wed, 28 Nov 2007 00:40:11 GMT\n" + "last-modified: Wed, 27 Nov 2007 08:00:00 GMT\n" + "\n", + false + }, // last-modified heuristic: modified recently { "HTTP/1.1 200 OK\n" "date: Wed, 28 Nov 2007 00:40:11 GMT\n" @@ -722,6 +734,18 @@ TEST(HttpResponseHeadersTest, RequiresValidation) { "\n", true }, + { "HTTP/1.1 203 Non-Authoritative Information\n" + "date: Wed, 28 Nov 2007 00:40:11 GMT\n" + "last-modified: Wed, 28 Nov 2007 00:40:10 GMT\n" + "\n", + true + }, + { "HTTP/1.1 206 Partial Content\n" + "date: Wed, 28 Nov 2007 00:40:11 GMT\n" + "last-modified: Wed, 28 Nov 2007 00:40:10 GMT\n" + "\n", + true + }, // cached permanent redirect { "HTTP/1.1 301 Moved Permanently\n" "\n", |