| OLD | NEW |
| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 socket_factory(new MockClientSocketFactory), | 339 socket_factory(new MockClientSocketFactory), |
| 340 http_auth_handler_factory( | 340 http_auth_handler_factory( |
| 341 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), | 341 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), |
| 342 http_server_properties(new HttpServerPropertiesImpl), | 342 http_server_properties(new HttpServerPropertiesImpl), |
| 343 enable_ip_pooling(true), | 343 enable_ip_pooling(true), |
| 344 enable_ping(false), | 344 enable_ping(false), |
| 345 enable_user_alternate_protocol_ports(false), | 345 enable_user_alternate_protocol_ports(false), |
| 346 enable_quic(false), | 346 enable_quic(false), |
| 347 session_max_recv_window_size(kDefaultInitialWindowSize), | 347 session_max_recv_window_size(kDefaultInitialWindowSize), |
| 348 time_func(&base::TimeTicks::Now), | 348 time_func(&base::TimeTicks::Now), |
| 349 enable_http2_alternative_service_with_different_host(false), | 349 enable_http2_alternative_service(false), |
| 350 net_log(nullptr), | 350 net_log(nullptr), |
| 351 http_09_on_non_default_ports_enabled(false), | 351 http_09_on_non_default_ports_enabled(false), |
| 352 restrict_to_one_preconnect_for_proxies(false), | 352 restrict_to_one_preconnect_for_proxies(false), |
| 353 quic_do_not_mark_as_broken_on_network_change(false) { | 353 quic_do_not_mark_as_broken_on_network_change(false) { |
| 354 // Note: The CancelledTransaction test does cleanup by running all | 354 // Note: The CancelledTransaction test does cleanup by running all |
| 355 // tasks in the message loop (RunAllPending). Unfortunately, that | 355 // tasks in the message loop (RunAllPending). Unfortunately, that |
| 356 // doesn't clean up tasks on the host resolver thread; and | 356 // doesn't clean up tasks on the host resolver thread; and |
| 357 // TCPConnectJob is currently not cancellable. Using synchronous | 357 // TCPConnectJob is currently not cancellable. Using synchronous |
| 358 // lookups allows the test to shutdown cleanly. Until we have | 358 // lookups allows the test to shutdown cleanly. Until we have |
| 359 // cancellable TCPConnectJobs, use synchronous lookups. | 359 // cancellable TCPConnectJobs, use synchronous lookups. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 params.http_server_properties = session_deps->http_server_properties.get(); | 403 params.http_server_properties = session_deps->http_server_properties.get(); |
| 404 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; | 404 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; |
| 405 params.enable_user_alternate_protocol_ports = | 405 params.enable_user_alternate_protocol_ports = |
| 406 session_deps->enable_user_alternate_protocol_ports; | 406 session_deps->enable_user_alternate_protocol_ports; |
| 407 params.enable_quic = session_deps->enable_quic; | 407 params.enable_quic = session_deps->enable_quic; |
| 408 params.spdy_session_max_recv_window_size = | 408 params.spdy_session_max_recv_window_size = |
| 409 session_deps->session_max_recv_window_size; | 409 session_deps->session_max_recv_window_size; |
| 410 params.http2_settings = session_deps->http2_settings; | 410 params.http2_settings = session_deps->http2_settings; |
| 411 params.time_func = session_deps->time_func; | 411 params.time_func = session_deps->time_func; |
| 412 params.proxy_delegate = session_deps->proxy_delegate.get(); | 412 params.proxy_delegate = session_deps->proxy_delegate.get(); |
| 413 params.enable_http2_alternative_service_with_different_host = | 413 params.enable_http2_alternative_service = |
| 414 session_deps->enable_http2_alternative_service_with_different_host; | 414 session_deps->enable_http2_alternative_service; |
| 415 params.net_log = session_deps->net_log; | 415 params.net_log = session_deps->net_log; |
| 416 params.http_09_on_non_default_ports_enabled = | 416 params.http_09_on_non_default_ports_enabled = |
| 417 session_deps->http_09_on_non_default_ports_enabled; | 417 session_deps->http_09_on_non_default_ports_enabled; |
| 418 params.restrict_to_one_preconnect_for_proxies = | 418 params.restrict_to_one_preconnect_for_proxies = |
| 419 session_deps->restrict_to_one_preconnect_for_proxies; | 419 session_deps->restrict_to_one_preconnect_for_proxies; |
| 420 params.quic_do_not_mark_as_broken_on_network_change = | 420 params.quic_do_not_mark_as_broken_on_network_change = |
| 421 session_deps->quic_do_not_mark_as_broken_on_network_change; | 421 session_deps->quic_do_not_mark_as_broken_on_network_change; |
| 422 return params; | 422 return params; |
| 423 } | 423 } |
| 424 | 424 |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 headers[GetSchemeKey()] = scheme.c_str(); | 1158 headers[GetSchemeKey()] = scheme.c_str(); |
| 1159 headers[GetPathKey()] = path.c_str(); | 1159 headers[GetPathKey()] = path.c_str(); |
| 1160 if (content_length) { | 1160 if (content_length) { |
| 1161 SpdyString length_str = base::Int64ToString(*content_length); | 1161 SpdyString length_str = base::Int64ToString(*content_length); |
| 1162 headers["content-length"] = length_str; | 1162 headers["content-length"] = length_str; |
| 1163 } | 1163 } |
| 1164 return headers; | 1164 return headers; |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 } // namespace net | 1167 } // namespace net |
| OLD | NEW |