Index: net/http/http_stream_factory_impl_unittest.cc |
diff --git a/net/http/http_stream_factory_impl_unittest.cc b/net/http/http_stream_factory_impl_unittest.cc |
index f7dc841f150bf1b9661ccaf5058de51f20a3a42e..7d7bb09dee04e48067429af75a8fc5d58f9d8eae 100644 |
--- a/net/http/http_stream_factory_impl_unittest.cc |
+++ b/net/http/http_stream_factory_impl_unittest.cc |
@@ -929,16 +929,20 @@ TEST_F(HttpStreamFactoryTest, WithQUICAlternativeProxyMarkedAsBad) { |
MockConnect(ASYNC, mock_error)); |
socket_factory.AddSocketDataProvider(&socket_data_proxy_main_job_2); |
+ SSLSocketDataProvider ssl_data(ASYNC, OK); |
+ |
// First request would use DIRECT, and succeed. |
StaticSocketDataProvider socket_data_direct_first_request; |
socket_data_direct_first_request.set_connect_data(MockConnect(ASYNC, OK)); |
socket_factory.AddSocketDataProvider(&socket_data_direct_first_request); |
+ socket_factory.AddSSLSocketDataProvider(&ssl_data); |
// Second request would use DIRECT, and succeed. |
StaticSocketDataProvider socket_data_direct_second_request; |
socket_data_direct_second_request.set_connect_data( |
MockConnect(ASYNC, OK)); |
socket_factory.AddSocketDataProvider(&socket_data_direct_second_request); |
+ socket_factory.AddSSLSocketDataProvider(&ssl_data); |
// Now request a stream. It should succeed using the DIRECT. |
HttpRequestInfo request_info; |