Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: net/http/http_network_layer_unittest.cc

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Response to comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer_unittest.cc
diff --git a/net/http/http_network_layer_unittest.cc b/net/http/http_network_layer_unittest.cc
index af1fa3b0080b7be791774b12a1a05febeafca026..2e443a6cd26197a6278f0ff1633d2252593dda14 100644
--- a/net/http/http_network_layer_unittest.cc
+++ b/net/http/http_network_layer_unittest.cc
@@ -44,17 +44,18 @@ class HttpNetworkLayerTest : public PlatformTest {
cert_verifier_.reset(new MockCertVerifier);
transport_security_state_.reset(new TransportSecurityState);
proxy_service_ = std::move(proxy_service);
- HttpNetworkSession::Params session_params;
- session_params.client_socket_factory = &mock_socket_factory_;
- session_params.host_resolver = &host_resolver_;
- session_params.cert_verifier = cert_verifier_.get();
- session_params.transport_security_state = transport_security_state_.get();
- session_params.cert_transparency_verifier = &ct_verifier_;
- session_params.ct_policy_enforcer = &ct_policy_enforcer_;
- session_params.proxy_service = proxy_service_.get();
- session_params.ssl_config_service = ssl_config_service_.get();
- session_params.http_server_properties = &http_server_properties_;
- network_session_.reset(new HttpNetworkSession(session_params));
+ HttpNetworkSession::Context session_context;
+ session_context.client_socket_factory = &mock_socket_factory_;
+ session_context.host_resolver = &host_resolver_;
+ session_context.cert_verifier = cert_verifier_.get();
+ session_context.transport_security_state = transport_security_state_.get();
+ session_context.cert_transparency_verifier = &ct_verifier_;
+ session_context.ct_policy_enforcer = &ct_policy_enforcer_;
+ session_context.proxy_service = proxy_service_.get();
+ session_context.ssl_config_service = ssl_config_service_.get();
+ session_context.http_server_properties = &http_server_properties_;
+ network_session_.reset(
+ new HttpNetworkSession(HttpNetworkSession::Params(), session_context));
factory_.reset(new HttpNetworkLayer(network_session_.get()));
}
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698