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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 2555563003: Ignore 1xx informational headers. (Closed)
Patch Set: Created 4 years 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 | net/http/http_proxy_client_socket_pool_unittest.cc » ('j') | net/spdy/spdy_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction_unittest.cc
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 4853e901c71526142d0c832ae6d9c7e4960b77b2..d691aaf616da070e896d23d8f5977e688842c2f5 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -4784,7 +4784,7 @@ TEST_F(HttpNetworkTransactionTest, HttpsProxySpdyGetWithProxyAuth) {
"proxy-authenticate", "Basic realm=\"MyRealm1\""
};
SpdySerializedFrame resp_authentication(spdy_util_.ConstructSpdyReplyError(
- "407 Proxy Authentication Required", kExtraAuthenticationHeaders,
+ "407", kExtraAuthenticationHeaders,
arraysize(kExtraAuthenticationHeaders) / 2, 1));
SpdySerializedFrame body_authentication(
spdy_util_.ConstructSpdyDataFrame(1, true));
@@ -7873,7 +7873,7 @@ TEST_F(HttpNetworkTransactionTest, RedirectOfHttpsConnectViaSpdyProxy) {
"http://login.example.com/",
};
SpdySerializedFrame resp(spdy_util_.ConstructSpdyReplyError(
- "302 Redirect", kExtraHeaders, arraysize(kExtraHeaders) / 2, 1));
+ "302", kExtraHeaders, arraysize(kExtraHeaders) / 2, 1));
MockRead data_reads[] = {
CreateMockRead(resp, 1), MockRead(ASYNC, 0, 3), // EOF
};
@@ -7969,7 +7969,7 @@ TEST_F(HttpNetworkTransactionTest, ErrorResponseToHttpsConnectViaSpdyProxy) {
"http://login.example.com/",
};
SpdySerializedFrame resp(spdy_util_.ConstructSpdyReplyError(
- "404 Not Found", kExtraHeaders, arraysize(kExtraHeaders) / 2, 1));
+ "404", kExtraHeaders, arraysize(kExtraHeaders) / 2, 1));
SpdySerializedFrame body(spdy_util_.ConstructSpdyDataFrame(
1, "The host does not exist", 23, true));
MockRead data_reads[] = {
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_unittest.cc » ('j') | net/spdy/spdy_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698