Index: net/spdy/spdy_proxy_client_socket_unittest.cc |
=================================================================== |
--- net/spdy/spdy_proxy_client_socket_unittest.cc (revision 68959) |
+++ net/spdy/spdy_proxy_client_socket_unittest.cc (working copy) |
@@ -839,12 +839,14 @@ |
Initialize(reads, arraysize(reads), writes, arraysize(writes)); |
- AssertConnectFails(ERR_TUNNEL_CONNECTION_FAILED); |
+ AssertConnectFails(ERR_HTTPS_PROXY_TUNNEL_RESPONSE); |
Run(2); // SpdySession consumes the next two reads and sends then to |
// sock_ to be buffered. |
- AssertSyncReadEquals(kMsg1, kLen1); |
- AssertSyncReadEquals(kMsg2, kLen2); |
+ EXPECT_EQ(ERR_SOCKET_NOT_CONNECTED, sock_->Read(NULL, 1, NULL)); |
+ scoped_refptr<IOBuffer> buf(new IOBuffer(kLen1 + kLen2)); |
+ scoped_ptr<HttpStream> stream(sock_->CreateConnectResponseStream()); |
+ stream->ReadResponseBody(buf, kLen1 + kLen2, &read_callback_); |
} |
// ----------- Reads and Writes |