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

Unified Diff: net/http/bidirectional_stream_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/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream_unittest.cc
diff --git a/net/http/bidirectional_stream_unittest.cc b/net/http/bidirectional_stream_unittest.cc
index 2f1bde1fa6535baf8fc982b393c4af656bc3e8a5..6d62d57b1c451889754dc30296be3eccbf00960a 100644
--- a/net/http/bidirectional_stream_unittest.cc
+++ b/net/http/bidirectional_stream_unittest.cc
@@ -445,9 +445,9 @@ TEST_F(BidirectionalStreamTest, CreateInsecureStream) {
request_info->url = GURL("http://www.example.org/");
TestDelegateBase delegate(nullptr, 0);
- HttpNetworkSession::Params params =
- SpdySessionDependencies::CreateSessionParams(&session_deps_);
- std::unique_ptr<HttpNetworkSession> session(new HttpNetworkSession(params));
+ std::unique_ptr<HttpNetworkSession> session(new HttpNetworkSession(
+ SpdySessionDependencies::CreateSessionParams(&session_deps_),
+ SpdySessionDependencies::CreateSessionContext(&session_deps_)));
delegate.SetRunUntilCompletion(true);
delegate.Start(std::move(request_info), session.get());
@@ -566,9 +566,9 @@ TEST_F(BidirectionalStreamTest,
request_info->url = GURL("http://www.example.org/");
std::unique_ptr<TestDelegateBase> delegate(new TestDelegateBase(nullptr, 0));
- HttpNetworkSession::Params params =
- SpdySessionDependencies::CreateSessionParams(&session_deps_);
- std::unique_ptr<HttpNetworkSession> session(new HttpNetworkSession(params));
+ std::unique_ptr<HttpNetworkSession> session(new HttpNetworkSession(
+ SpdySessionDependencies::CreateSessionParams(&session_deps_),
+ SpdySessionDependencies::CreateSessionContext(&session_deps_)));
delegate->Start(std::move(request_info), session.get());
// Reset stream right before the OnFailed task is executed.
delegate.reset();
« no previous file with comments | « net/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698