Index: net/http/http_response_body_drainer_unittest.cc |
diff --git a/net/http/http_response_body_drainer_unittest.cc b/net/http/http_response_body_drainer_unittest.cc |
index 42efa57f919e1923042c95188f34a76202c70bd1..5aa0bff98f72847fd0687f0bb6438275d49ad68c 100644 |
--- a/net/http/http_response_body_drainer_unittest.cc |
+++ b/net/http/http_response_body_drainer_unittest.cc |
@@ -16,6 +16,7 @@ |
#include "net/http/http_network_session.h" |
#include "net/http/http_server_properties_impl.h" |
#include "net/http/http_stream.h" |
+#include "net/http/transport_security_state.h" |
#include "net/proxy/proxy_service.h" |
#include "net/ssl/ssl_config_service_defaults.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -210,6 +211,7 @@ class HttpResponseBodyDrainerTest : public testing::Test { |
: proxy_service_(ProxyService::CreateDirect()), |
ssl_config_service_(new SSLConfigServiceDefaults), |
http_server_properties_(new HttpServerPropertiesImpl()), |
+ transport_security_state_(new TransportSecurityState()), |
session_(CreateNetworkSession()), |
mock_stream_(new MockHttpStream(&result_waiter_)), |
drainer_(new HttpResponseBodyDrainer(mock_stream_)) {} |
@@ -221,12 +223,14 @@ class HttpResponseBodyDrainerTest : public testing::Test { |
params.proxy_service = proxy_service_.get(); |
params.ssl_config_service = ssl_config_service_.get(); |
params.http_server_properties = http_server_properties_->GetWeakPtr(); |
+ params.transport_security_state = transport_security_state_.get(); |
return new HttpNetworkSession(params); |
} |
scoped_ptr<ProxyService> proxy_service_; |
scoped_refptr<SSLConfigService> ssl_config_service_; |
scoped_ptr<HttpServerPropertiesImpl> http_server_properties_; |
+ scoped_ptr<TransportSecurityState> transport_security_state_; |
const scoped_refptr<HttpNetworkSession> session_; |
CloseResultWaiter result_waiter_; |
MockHttpStream* const mock_stream_; // Owned by |drainer_|. |