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

Unified Diff: net/cert_net/cert_net_fetcher_impl_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 | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert_net/cert_net_fetcher_impl_unittest.cc
diff --git a/net/cert_net/cert_net_fetcher_impl_unittest.cc b/net/cert_net/cert_net_fetcher_impl_unittest.cc
index 6669cfdf6d584ae786a5d8cbcad64d68aa517b79..12e468e0f81d8f9282168d7c3ae593c1a0f55a89 100644
--- a/net/cert_net/cert_net_fetcher_impl_unittest.cc
+++ b/net/cert_net/cert_net_fetcher_impl_unittest.cc
@@ -57,17 +57,17 @@ class RequestContext : public URLRequestContext {
storage_.set_http_server_properties(
std::unique_ptr<HttpServerProperties>(new HttpServerPropertiesImpl()));
- HttpNetworkSession::Params params;
- params.host_resolver = host_resolver();
- params.cert_verifier = cert_verifier();
- params.transport_security_state = transport_security_state();
- params.cert_transparency_verifier = cert_transparency_verifier();
- params.ct_policy_enforcer = ct_policy_enforcer();
- params.proxy_service = proxy_service();
- params.ssl_config_service = ssl_config_service();
- params.http_server_properties = http_server_properties();
- storage_.set_http_network_session(
- base::MakeUnique<HttpNetworkSession>(params));
+ HttpNetworkSession::Context session_context;
+ session_context.host_resolver = host_resolver();
+ session_context.cert_verifier = cert_verifier();
+ session_context.transport_security_state = transport_security_state();
+ session_context.cert_transparency_verifier = cert_transparency_verifier();
+ session_context.ct_policy_enforcer = ct_policy_enforcer();
+ session_context.proxy_service = proxy_service();
+ session_context.ssl_config_service = ssl_config_service();
+ session_context.http_server_properties = http_server_properties();
+ storage_.set_http_network_session(base::MakeUnique<HttpNetworkSession>(
+ HttpNetworkSession::Params(), session_context));
storage_.set_http_transaction_factory(base::MakeUnique<HttpCache>(
storage_.http_network_session(), HttpCache::DefaultBackend::InMemory(0),
false /* is_main_cache */));
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698