diff options
author | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-30 15:08:42 +0000 |
---|---|---|
committer | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-30 15:08:42 +0000 |
commit | ecc7b1678ed1f52b056c94c41d9f3009de1cdc9c (patch) | |
tree | ab10d1ab97741afca1682e990c45cb479dde293f /net/http/http_response_headers_unittest.cc | |
parent | aabf821311666fcc6ce0eccb94251433f75df7a8 (diff) | |
download | chromium_src-ecc7b1678ed1f52b056c94c41d9f3009de1cdc9c.zip chromium_src-ecc7b1678ed1f52b056c94c41d9f3009de1cdc9c.tar.gz chromium_src-ecc7b1678ed1f52b056c94c41d9f3009de1cdc9c.tar.bz2 |
Update UMA to track bypasses due to 4xx responses that are missing the proxy's via header and bypasses due to network errors.
BUG=376148
Review URL: https://codereview.chromium.org/298883011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273839 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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index c9c8c46..b097a18 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -2245,6 +2245,17 @@ TEST(HttpResponseHeadersTest, GetDataReductionProxyBypassEventType) { "Chrome-Proxy: bypass=1799\n", net::ProxyService::SHORT_BYPASS, }, + { "HTTP/1.1 502 Bad Gateway\n" + "Chrome-Proxy: bypass=1799\n", + net::ProxyService::SHORT_BYPASS, + }, + { "HTTP/1.1 414 Request-URI Too Long\n", + net::ProxyService::PROXY_4XX_BYPASS, + }, + { "HTTP/1.1 414 Request-URI Too Long\n" + "Via: 1.1 Chrome-Compression-Proxy\n", + net::ProxyService::BYPASS_EVENT_TYPE_MAX, + } }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { std::string headers(tests[i].headers); |