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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 2600973002: Implement HTTP/2 settings field trial parameters. (Closed)
Patch Set: Created 4 years 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
« net/spdy/spdy_session_pool.h ('K') | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index 305d99cfb40d77ae850c4aa1a52fdb07731802be..139570d8974d7105e60fb6633c53e40c9051e721 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -343,7 +343,6 @@ SpdySessionDependencies::SpdySessionDependencies(
enable_user_alternate_protocol_ports(false),
enable_quic(false),
session_max_recv_window_size(kDefaultInitialWindowSize),
- stream_max_recv_window_size(kDefaultInitialWindowSize),
time_func(&base::TimeTicks::Now),
enable_http2_alternative_service_with_different_host(false),
net_log(nullptr),
@@ -355,6 +354,7 @@ SpdySessionDependencies::SpdySessionDependencies(
// lookups allows the test to shutdown cleanly. Until we have
// cancellable TCPConnectJobs, use synchronous lookups.
host_resolver->set_synchronous_mode(true);
+ http2_settings[SETTINGS_INITIAL_WINDOW_SIZE] = kDefaultInitialWindowSize;
}
SpdySessionDependencies::~SpdySessionDependencies() {}
@@ -394,8 +394,7 @@ HttpNetworkSession::Params SpdySessionDependencies::CreateSessionParams(
params.enable_quic = session_deps->enable_quic;
params.spdy_session_max_recv_window_size =
session_deps->session_max_recv_window_size;
- params.spdy_stream_max_recv_window_size =
- session_deps->stream_max_recv_window_size;
+ params.http2_settings = session_deps->http2_settings;
params.time_func = session_deps->time_func;
params.proxy_delegate = session_deps->proxy_delegate.get();
params.enable_http2_alternative_service_with_different_host =
« net/spdy/spdy_session_pool.h ('K') | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698