Index: chrome/browser/net/connection_tester_unittest.cc |
diff --git a/chrome/browser/net/connection_tester_unittest.cc b/chrome/browser/net/connection_tester_unittest.cc |
index ac4fa23c9f56df353bdd220d64fb8f12e3603b8c..5d87aa10b3645ab0f4601aa0d11dc2b65b7ff180 100644 |
--- a/chrome/browser/net/connection_tester_unittest.cc |
+++ b/chrome/browser/net/connection_tester_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "net/http/http_network_layer.h" |
#include "net/http/http_network_session.h" |
#include "net/http/http_server_properties_impl.h" |
+#include "net/http/transport_security_state.h" |
#include "net/proxy/proxy_config_service_fixed.h" |
#include "net/proxy/proxy_service.h" |
#include "net/ssl/ssl_config_service_defaults.h" |
@@ -109,6 +110,7 @@ class ConnectionTesterTest : public PlatformTest { |
ConnectionTesterDelegate test_delegate_; |
net::MockHostResolver host_resolver_; |
scoped_ptr<net::CertVerifier> cert_verifier_; |
+ scoped_ptr<net::TransportSecurityState> transport_security_state_; |
scoped_ptr<net::ProxyService> proxy_service_; |
scoped_refptr<net::SSLConfigService> ssl_config_service_; |
scoped_ptr<net::HttpTransactionFactory> http_transaction_factory_; |
@@ -120,7 +122,10 @@ class ConnectionTesterTest : public PlatformTest { |
void InitializeRequestContext() { |
proxy_script_fetcher_context_->set_host_resolver(&host_resolver_); |
cert_verifier_.reset(new net::MockCertVerifier); |
+ transport_security_state_.reset(new net::TransportSecurityState); |
proxy_script_fetcher_context_->set_cert_verifier(cert_verifier_.get()); |
+ proxy_script_fetcher_context_->set_transport_security_state( |
+ transport_security_state_.get()); |
proxy_script_fetcher_context_->set_http_auth_handler_factory( |
&http_auth_handler_factory_); |
proxy_service_.reset(net::ProxyService::CreateDirect()); |
@@ -129,6 +134,7 @@ class ConnectionTesterTest : public PlatformTest { |
net::HttpNetworkSession::Params session_params; |
session_params.host_resolver = &host_resolver_; |
session_params.cert_verifier = cert_verifier_.get(); |
+ session_params.transport_security_state = transport_security_state_.get(); |
session_params.http_auth_handler_factory = &http_auth_handler_factory_; |
session_params.ssl_config_service = ssl_config_service_.get(); |
session_params.proxy_service = proxy_service_.get(); |