Chromium Code Reviews| Index: net/http/http_response_headers_unittest.cc |
| diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc |
| index c9c8c467eaf26bd19942a13a089a58cf03179286..e4ee192c870fc698003d475ef19f6915cf9f9ba1 100644 |
| --- a/net/http/http_response_headers_unittest.cc |
| +++ b/net/http/http_response_headers_unittest.cc |
| @@ -2245,6 +2245,26 @@ 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" |
| + "Server: GFE/2.0\n", |
| + net::ProxyService::PROXY_4XX_BYPASS, |
| + }, |
| + { "HTTP/1.1 414 Request-URI Too Long\n", |
| + net::ProxyService::MISSING_VIA_HEADER, |
| + }, |
| + { "HTTP/1.1 414 Request-URI Too Long\n" |
| + "Via: 1.1 Chrome-Compression-Proxy\n", |
| + net::ProxyService::BYPASS_EVENT_TYPE_MAX, |
| + }, |
| + { "HTTP/1.1 414 Request-URI Too Long\n" |
| + "Server: GFE/2.0\n" |
|
mef
2014/05/28 15:39:57
What is expected if this was "Server: MyServer/1.5
|
| + "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); |