| 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 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 scoped_ptr<HttpServerProperties>(new HttpServerPropertiesImpl())); | 454 scoped_ptr<HttpServerProperties>(new HttpServerPropertiesImpl())); |
| 455 storage_.set_job_factory(make_scoped_ptr(new URLRequestJobFactoryImpl())); | 455 storage_.set_job_factory(make_scoped_ptr(new URLRequestJobFactoryImpl())); |
| 456 HttpNetworkSession::Params params; | 456 HttpNetworkSession::Params params; |
| 457 params.client_socket_factory = &socket_factory_; | 457 params.client_socket_factory = &socket_factory_; |
| 458 params.host_resolver = host_resolver(); | 458 params.host_resolver = host_resolver(); |
| 459 params.cert_verifier = cert_verifier(); | 459 params.cert_verifier = cert_verifier(); |
| 460 params.transport_security_state = transport_security_state(); | 460 params.transport_security_state = transport_security_state(); |
| 461 params.proxy_service = proxy_service(); | 461 params.proxy_service = proxy_service(); |
| 462 params.ssl_config_service = ssl_config_service(); | 462 params.ssl_config_service = ssl_config_service(); |
| 463 params.http_auth_handler_factory = http_auth_handler_factory(); | 463 params.http_auth_handler_factory = http_auth_handler_factory(); |
| 464 params.network_delegate = network_delegate(); | |
| 465 params.enable_spdy_ping_based_connection_checking = false; | 464 params.enable_spdy_ping_based_connection_checking = false; |
| 466 params.spdy_default_protocol = protocol; | 465 params.spdy_default_protocol = protocol; |
| 467 params.http_server_properties = http_server_properties(); | 466 params.http_server_properties = http_server_properties(); |
| 468 storage_.set_http_network_session( | 467 storage_.set_http_network_session( |
| 469 make_scoped_ptr(new HttpNetworkSession(params))); | 468 make_scoped_ptr(new HttpNetworkSession(params))); |
| 470 SpdySessionPoolPeer pool_peer( | 469 SpdySessionPoolPeer pool_peer( |
| 471 storage_.http_network_session()->spdy_session_pool()); | 470 storage_.http_network_session()->spdy_session_pool()); |
| 472 pool_peer.SetEnableSendingInitialData(false); | 471 pool_peer.SetEnableSendingInitialData(false); |
| 473 storage_.set_http_transaction_factory(make_scoped_ptr( | 472 storage_.set_http_transaction_factory(make_scoped_ptr( |
| 474 new HttpCache(storage_.http_network_session(), | 473 new HttpCache(storage_.http_network_session(), |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 } | 1268 } |
| 1270 } | 1269 } |
| 1271 | 1270 |
| 1272 void SpdyTestUtil::SetPriority(RequestPriority priority, | 1271 void SpdyTestUtil::SetPriority(RequestPriority priority, |
| 1273 SpdySynStreamIR* ir) const { | 1272 SpdySynStreamIR* ir) const { |
| 1274 ir->set_priority(ConvertRequestPriorityToSpdyPriority( | 1273 ir->set_priority(ConvertRequestPriorityToSpdyPriority( |
| 1275 priority, spdy_version())); | 1274 priority, spdy_version())); |
| 1276 } | 1275 } |
| 1277 | 1276 |
| 1278 } // namespace net | 1277 } // namespace net |
| OLD | NEW |