Index: net/socket/ssl_client_socket_unittest.cc |
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc |
index 2390bd59ff68a36c2a2a119b4f44aa828156381b..f48e1c77a2cd8dee1149d88175ac371660835f36 100644 |
--- a/net/socket/ssl_client_socket_unittest.cc |
+++ b/net/socket/ssl_client_socket_unittest.cc |
@@ -3178,6 +3178,14 @@ TEST_F(SSLClientSocketFalseStartTest, NoSessionResumptionBeforeFinish) { |
// still completes. |
EXPECT_EQ(OK, callback.WaitForResult()); |
+ // Leave the server Finished blocked, but wait for it to arrive. This ensures |
+ // the server has completed the handshake and added the session to its session |
+ // cache. |
Ryan Sleevi
2015/03/09 21:56:12
Suggested reword:
// Continue to block the client
davidben
2015/03/09 22:01:13
Done.
|
+ scoped_refptr<IOBuffer> buf(new IOBuffer(4096)); |
+ int rv = sock1->Read(buf.get(), 4096, callback.callback()); |
+ EXPECT_EQ(ERR_IO_PENDING, rv); |
+ raw_transport1->WaitForReadResult(); |
+ |
// Drop the old socket. This is needed because the Python test server can't |
// service two sockets in parallel. |
sock1.reset(); |