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

Unified Diff: net/socket/ssl_client_socket_pool_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/socket/client_socket_pool_manager.cc ('k') | net/spdy/chromium/spdy_test_util_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_pool_unittest.cc
diff --git a/net/socket/ssl_client_socket_pool_unittest.cc b/net/socket/ssl_client_socket_pool_unittest.cc
index 732a82ee35d254171d8c6949afa5cdcb174aa632..77029796c880719c021f08966538d9e22347497c 100644
--- a/net/socket/ssl_client_socket_pool_unittest.cc
+++ b/net/socket/ssl_client_socket_pool_unittest.cc
@@ -167,18 +167,20 @@ class SSLClientSocketPoolTest : public testing::Test {
}
HttpNetworkSession* CreateNetworkSession() {
- HttpNetworkSession::Params params;
- params.host_resolver = &host_resolver_;
- params.cert_verifier = cert_verifier_.get();
- params.transport_security_state = transport_security_state_.get();
- params.cert_transparency_verifier = &ct_verifier_;
- params.ct_policy_enforcer = &ct_policy_enforcer_;
- params.proxy_service = proxy_service_.get();
- params.client_socket_factory = &socket_factory_;
- params.ssl_config_service = ssl_config_service_.get();
- params.http_auth_handler_factory = http_auth_handler_factory_.get();
- params.http_server_properties = http_server_properties_.get();
- return new HttpNetworkSession(params);
+ HttpNetworkSession::Context session_context;
+ 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.client_socket_factory = &socket_factory_;
+ session_context.ssl_config_service = ssl_config_service_.get();
+ session_context.http_auth_handler_factory =
+ http_auth_handler_factory_.get();
+ session_context.http_server_properties = http_server_properties_.get();
+ return new HttpNetworkSession(HttpNetworkSession::Params(),
+ session_context);
}
void TestIPPoolingDisabled(SSLSocketDataProvider* ssl);
« no previous file with comments | « net/socket/client_socket_pool_manager.cc ('k') | net/spdy/chromium/spdy_test_util_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698