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

Unified Diff: net/http/http_response_body_drainer_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/http_network_transaction_ssl_unittest.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44943e291f36bcf9de2407c4405d3cb8e3373317..a02ed662370873ea10f04107203626551b74d984 100644
--- a/net/http/http_response_body_drainer_unittest.cc
+++ b/net/http/http_response_body_drainer_unittest.cc
@@ -245,15 +245,15 @@ class HttpResponseBodyDrainerTest : public testing::Test {
~HttpResponseBodyDrainerTest() override {}
HttpNetworkSession* CreateNetworkSession() {
- HttpNetworkSession::Params params;
- params.proxy_service = proxy_service_.get();
- params.ssl_config_service = ssl_config_service_.get();
- params.http_server_properties = http_server_properties_.get();
- params.cert_verifier = &cert_verifier_;
- params.transport_security_state = &transport_security_state_;
- params.cert_transparency_verifier = &ct_verifier_;
- params.ct_policy_enforcer = &ct_policy_enforcer_;
- return new HttpNetworkSession(params);
+ HttpNetworkSession::Context context;
+ context.proxy_service = proxy_service_.get();
+ context.ssl_config_service = ssl_config_service_.get();
+ context.http_server_properties = http_server_properties_.get();
+ context.cert_verifier = &cert_verifier_;
+ context.transport_security_state = &transport_security_state_;
+ context.cert_transparency_verifier = &ct_verifier_;
+ context.ct_policy_enforcer = &ct_policy_enforcer_;
+ return new HttpNetworkSession(HttpNetworkSession::Params(), context);
}
std::unique_ptr<ProxyService> proxy_service_;
« no previous file with comments | « net/http/http_network_transaction_ssl_unittest.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698