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()); |
} |