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

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

Issue 1453903002: Re-enable HTTP/2 over NPN (for OpenSSL). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize |enable_npn| in other SpdySessionDependencies constructor. Created 5 years, 1 month 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
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 proxy_service(ProxyService::CreateDirect()), 341 proxy_service(ProxyService::CreateDirect()),
342 ssl_config_service(new SSLConfigServiceDefaults), 342 ssl_config_service(new SSLConfigServiceDefaults),
343 socket_factory(new MockClientSocketFactory), 343 socket_factory(new MockClientSocketFactory),
344 deterministic_socket_factory(new DeterministicMockClientSocketFactory), 344 deterministic_socket_factory(new DeterministicMockClientSocketFactory),
345 http_auth_handler_factory( 345 http_auth_handler_factory(
346 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 346 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
347 enable_ip_pooling(true), 347 enable_ip_pooling(true),
348 enable_compression(false), 348 enable_compression(false),
349 enable_ping(false), 349 enable_ping(false),
350 enable_user_alternate_protocol_ports(false), 350 enable_user_alternate_protocol_ports(false),
351 enable_npn(true),
351 protocol(protocol), 352 protocol(protocol),
352 session_max_recv_window_size( 353 session_max_recv_window_size(
353 SpdySession::GetDefaultInitialWindowSize(protocol)), 354 SpdySession::GetDefaultInitialWindowSize(protocol)),
354 stream_max_recv_window_size( 355 stream_max_recv_window_size(
355 SpdySession::GetDefaultInitialWindowSize(protocol)), 356 SpdySession::GetDefaultInitialWindowSize(protocol)),
356 time_func(&base::TimeTicks::Now), 357 time_func(&base::TimeTicks::Now),
357 use_alternative_services(false), 358 use_alternative_services(false),
358 net_log(NULL) { 359 net_log(NULL) {
359 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 360 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
360 361
(...skipping 15 matching lines...) Expand all
376 proxy_service(proxy_service.Pass()), 377 proxy_service(proxy_service.Pass()),
377 ssl_config_service(new SSLConfigServiceDefaults), 378 ssl_config_service(new SSLConfigServiceDefaults),
378 socket_factory(new MockClientSocketFactory), 379 socket_factory(new MockClientSocketFactory),
379 deterministic_socket_factory(new DeterministicMockClientSocketFactory), 380 deterministic_socket_factory(new DeterministicMockClientSocketFactory),
380 http_auth_handler_factory( 381 http_auth_handler_factory(
381 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 382 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
382 enable_ip_pooling(true), 383 enable_ip_pooling(true),
383 enable_compression(false), 384 enable_compression(false),
384 enable_ping(false), 385 enable_ping(false),
385 enable_user_alternate_protocol_ports(false), 386 enable_user_alternate_protocol_ports(false),
387 enable_npn(true),
386 protocol(protocol), 388 protocol(protocol),
387 session_max_recv_window_size( 389 session_max_recv_window_size(
388 SpdySession::GetDefaultInitialWindowSize(protocol)), 390 SpdySession::GetDefaultInitialWindowSize(protocol)),
389 stream_max_recv_window_size( 391 stream_max_recv_window_size(
390 SpdySession::GetDefaultInitialWindowSize(protocol)), 392 SpdySession::GetDefaultInitialWindowSize(protocol)),
391 time_func(&base::TimeTicks::Now), 393 time_func(&base::TimeTicks::Now),
392 use_alternative_services(true), 394 use_alternative_services(true),
393 net_log(NULL) { 395 net_log(NULL) {
394 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 396 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
395 } 397 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 params.proxy_service = session_deps->proxy_service.get(); 436 params.proxy_service = session_deps->proxy_service.get();
435 params.ssl_config_service = session_deps->ssl_config_service.get(); 437 params.ssl_config_service = session_deps->ssl_config_service.get();
436 params.http_auth_handler_factory = 438 params.http_auth_handler_factory =
437 session_deps->http_auth_handler_factory.get(); 439 session_deps->http_auth_handler_factory.get();
438 params.http_server_properties = 440 params.http_server_properties =
439 session_deps->http_server_properties.GetWeakPtr(); 441 session_deps->http_server_properties.GetWeakPtr();
440 params.enable_spdy_compression = session_deps->enable_compression; 442 params.enable_spdy_compression = session_deps->enable_compression;
441 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; 443 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping;
442 params.enable_user_alternate_protocol_ports = 444 params.enable_user_alternate_protocol_ports =
443 session_deps->enable_user_alternate_protocol_ports; 445 session_deps->enable_user_alternate_protocol_ports;
446 params.enable_npn = session_deps->enable_npn;
444 params.spdy_default_protocol = session_deps->protocol; 447 params.spdy_default_protocol = session_deps->protocol;
445 params.spdy_session_max_recv_window_size = 448 params.spdy_session_max_recv_window_size =
446 session_deps->session_max_recv_window_size; 449 session_deps->session_max_recv_window_size;
447 params.spdy_stream_max_recv_window_size = 450 params.spdy_stream_max_recv_window_size =
448 session_deps->stream_max_recv_window_size; 451 session_deps->stream_max_recv_window_size;
449 params.time_func = session_deps->time_func; 452 params.time_func = session_deps->time_func;
450 params.next_protos = session_deps->next_protos; 453 params.next_protos = session_deps->next_protos;
451 params.trusted_spdy_proxy = session_deps->trusted_spdy_proxy; 454 params.trusted_spdy_proxy = session_deps->trusted_spdy_proxy;
452 params.use_alternative_services = session_deps->use_alternative_services; 455 params.use_alternative_services = session_deps->use_alternative_services;
453 params.net_log = session_deps->net_log; 456 params.net_log = session_deps->net_log;
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 } 1346 }
1344 } 1347 }
1345 1348
1346 void SpdyTestUtil::SetPriority(RequestPriority priority, 1349 void SpdyTestUtil::SetPriority(RequestPriority priority,
1347 SpdySynStreamIR* ir) const { 1350 SpdySynStreamIR* ir) const {
1348 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1351 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1349 priority, spdy_version())); 1352 priority, spdy_version()));
1350 } 1353 }
1351 1354
1352 } // namespace net 1355 } // namespace net
OLDNEW
« no previous file with comments | « 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