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

Side by Side Diff: net/spdy/spdy_test_util_common.cc

Issue 2115213002: Disable SPDY/3.1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_test_util_common.h" 5 #include "net/spdy/spdy_test_util_common.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <utility> 10 #include <utility>
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 ssl_config_service(new SSLConfigServiceDefaults), 351 ssl_config_service(new SSLConfigServiceDefaults),
352 socket_factory(new MockClientSocketFactory), 352 socket_factory(new MockClientSocketFactory),
353 http_auth_handler_factory( 353 http_auth_handler_factory(
354 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 354 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
355 http_server_properties(new HttpServerPropertiesImpl), 355 http_server_properties(new HttpServerPropertiesImpl),
356 enable_ip_pooling(true), 356 enable_ip_pooling(true),
357 enable_ping(false), 357 enable_ping(false),
358 enable_user_alternate_protocol_ports(false), 358 enable_user_alternate_protocol_ports(false),
359 enable_npn(false), 359 enable_npn(false),
360 enable_priority_dependencies(true), 360 enable_priority_dependencies(true),
361 enable_spdy31(true),
362 enable_quic(false), 361 enable_quic(false),
363 protocol(protocol), 362 protocol(protocol),
364 session_max_recv_window_size( 363 session_max_recv_window_size(
365 SpdySession::GetDefaultInitialWindowSize(protocol)), 364 SpdySession::GetDefaultInitialWindowSize(protocol)),
366 stream_max_recv_window_size( 365 stream_max_recv_window_size(
367 SpdySession::GetDefaultInitialWindowSize(protocol)), 366 SpdySession::GetDefaultInitialWindowSize(protocol)),
368 time_func(&base::TimeTicks::Now), 367 time_func(&base::TimeTicks::Now),
369 enable_http2_alternative_service_with_different_host(false), 368 enable_http2_alternative_service_with_different_host(false),
370 net_log(NULL) { 369 net_log(NULL) {
371 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 370 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 params.ssl_config_service = session_deps->ssl_config_service.get(); 411 params.ssl_config_service = session_deps->ssl_config_service.get();
413 params.http_auth_handler_factory = 412 params.http_auth_handler_factory =
414 session_deps->http_auth_handler_factory.get(); 413 session_deps->http_auth_handler_factory.get();
415 params.http_server_properties = session_deps->http_server_properties.get(); 414 params.http_server_properties = session_deps->http_server_properties.get();
416 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; 415 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping;
417 params.enable_user_alternate_protocol_ports = 416 params.enable_user_alternate_protocol_ports =
418 session_deps->enable_user_alternate_protocol_ports; 417 session_deps->enable_user_alternate_protocol_ports;
419 params.enable_npn = session_deps->enable_npn; 418 params.enable_npn = session_deps->enable_npn;
420 params.enable_priority_dependencies = 419 params.enable_priority_dependencies =
421 session_deps->enable_priority_dependencies; 420 session_deps->enable_priority_dependencies;
422 params.enable_spdy31 = session_deps->enable_spdy31;
423 params.enable_quic = session_deps->enable_quic; 421 params.enable_quic = session_deps->enable_quic;
424 params.spdy_default_protocol = session_deps->protocol; 422 params.spdy_default_protocol = session_deps->protocol;
425 params.spdy_session_max_recv_window_size = 423 params.spdy_session_max_recv_window_size =
426 session_deps->session_max_recv_window_size; 424 session_deps->session_max_recv_window_size;
427 params.spdy_stream_max_recv_window_size = 425 params.spdy_stream_max_recv_window_size =
428 session_deps->stream_max_recv_window_size; 426 session_deps->stream_max_recv_window_size;
429 params.time_func = session_deps->time_func; 427 params.time_func = session_deps->time_func;
430 params.proxy_delegate = session_deps->proxy_delegate.get(); 428 params.proxy_delegate = session_deps->proxy_delegate.get();
431 params.enable_http2_alternative_service_with_different_host = 429 params.enable_http2_alternative_service_with_different_host =
432 session_deps->enable_http2_alternative_service_with_different_host; 430 session_deps->enable_http2_alternative_service_with_different_host;
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 } 1283 }
1286 } 1284 }
1287 1285
1288 void SpdyTestUtil::SetPriority(RequestPriority priority, 1286 void SpdyTestUtil::SetPriority(RequestPriority priority,
1289 SpdySynStreamIR* ir) const { 1287 SpdySynStreamIR* ir) const {
1290 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1288 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1291 priority, spdy_version())); 1289 priority, spdy_version()));
1292 } 1290 }
1293 1291
1294 } // namespace net 1292 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698