diff options
author | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 04:08:25 +0000 |
---|---|---|
committer | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 04:08:25 +0000 |
commit | 15952a2e068be6a8132142cd2da4ada684736c94 (patch) | |
tree | 86b36be05eefa1b0e4206f43281ab3aa4db171a4 /net/http/http_response_headers_unittest.cc | |
parent | 5782a52a9e0945a220bf135d49210288ee08876c (diff) | |
download | chromium_src-15952a2e068be6a8132142cd2da4ada684736c94.zip chromium_src-15952a2e068be6a8132142cd2da4ada684736c94.tar.gz chromium_src-15952a2e068be6a8132142cd2da4ada684736c94.tar.bz2 |
Added tests for ProxyList::UpdateRetryInfoOnFallback
This CL addresses comments made by eroman@ in
https://codereview.chromium.org/98373005/. In particular,
additional test coverage is included.
BUG=325333
Review URL: https://codereview.chromium.org/117333004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241789 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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index 4be7478..825f5c4 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -2013,6 +2013,22 @@ TEST(HttpResponseHeadersTest, GetProxyBypassInfo) { 86400, false, }, + { "HTTP/1.1 200 OK\n" + "connection: proxy-bypass\n" + "Chrome-Proxy: block=-1\n" + "Content-Length: 999\n", + false, + 0, + false, + }, + { "HTTP/1.1 200 OK\n" + "connection: proxy-bypass\n" + "Chrome-Proxy: block=99999999999999999999\n" + "Content-Length: 999\n", + false, + 0, + false, + }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { std::string headers(tests[i].headers); |