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 9565d7f591aaa9acbbfc68d1e566dbc83e7d7c7a..b99cf33375e8d330942a81957b01312c1fd92fd5 100644 |
--- a/net/http/http_stream_factory_impl_unittest.cc |
+++ b/net/http/http_stream_factory_impl_unittest.cc |
@@ -953,16 +953,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; |