Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc

Issue 651433003: Change MISSING_VIA_HEADER_4XX bypasses to only last 1 second. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test case Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/data_reduction_proxy/common/data_reduction_proxy_headers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc
index 46ccafe073ff75603b95ec3bdf57127f6c304a63..b7c701475be725d236ae803ca3cc63cc5779d3d6 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc
@@ -565,6 +565,16 @@ TEST_F(DataReductionProxyProtocolTest, BypassLogic) {
0,
BYPASS_EVENT_TYPE_STATUS_503_HTTP_SERVICE_UNAVAILABLE
},
+ // Invalid data reduction proxy 4xx response. Missing Via header.
+ { "GET",
+ "HTTP/1.1 404 Not Found\r\n"
+ "Server: proxy\r\n\r\n",
+ true,
+ 1u,
+ true,
+ 1,
+ BYPASS_EVENT_TYPE_MISSING_VIA_HEADER_4XX
+ },
// Invalid data reduction proxy response. Missing Via header.
{ "GET",
"HTTP/1.1 200 OK\r\n"
« no previous file with comments | « no previous file | components/data_reduction_proxy/common/data_reduction_proxy_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698