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

Unified Diff: net/websockets/websocket_stream_test.cc

Issue 2144803002: Remove HTTP/0.9 support from HttpStreamParser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix websockets tests Created 4 years, 5 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
Index: net/websockets/websocket_stream_test.cc
diff --git a/net/websockets/websocket_stream_test.cc b/net/websockets/websocket_stream_test.cc
index a7d25d7b7ad282cd61cb071e81894fe805ee4122..d375bf990bfef574d07042a943a51014c7b40da6 100644
--- a/net/websockets/websocket_stream_test.cc
+++ b/net/websockets/websocket_stream_test.cc
@@ -668,8 +668,7 @@ TEST_F(WebSocketStreamCreateTest, RedirectsRejected) {
// Malformed responses should be rejected. HttpStreamParser will accept just
// about any garbage in the middle of the headers. To make it give up, the junk
-// has to be at the start of the response. Even then, it just gets treated as an
-// HTTP/0.9 response.
+// has to be at the start of the response.
TEST_F(WebSocketStreamCreateTest, MalformedResponse) {
static const char kMalformedResponse[] =
"220 mx.google.com ESMTP\r\n"
@@ -683,7 +682,7 @@ TEST_F(WebSocketStreamCreateTest, MalformedResponse) {
kMalformedResponse);
WaitUntilConnectDone();
EXPECT_TRUE(has_failed());
- EXPECT_EQ("Error during WebSocket handshake: Invalid status line",
+ EXPECT_EQ("Error during WebSocket handshake: net::ERR_INVALID_HTTP_RESPONSE",
failure_message());
}

Powered by Google App Engine
This is Rietveld 408576698