| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 enable_user_alternate_protocol_ports(false), | 380 enable_user_alternate_protocol_ports(false), |
| 381 enable_npn(true), | 381 enable_npn(true), |
| 382 protocol(protocol), | 382 protocol(protocol), |
| 383 session_max_recv_window_size( | 383 session_max_recv_window_size( |
| 384 SpdySession::GetDefaultInitialWindowSize(protocol)), | 384 SpdySession::GetDefaultInitialWindowSize(protocol)), |
| 385 stream_max_recv_window_size( | 385 stream_max_recv_window_size( |
| 386 SpdySession::GetDefaultInitialWindowSize(protocol)), | 386 SpdySession::GetDefaultInitialWindowSize(protocol)), |
| 387 time_func(&base::TimeTicks::Now), | 387 time_func(&base::TimeTicks::Now), |
| 388 enable_spdy31(true), | 388 enable_spdy31(true), |
| 389 enable_http2(true), | 389 enable_http2(true), |
| 390 parse_alternative_services(true), | 390 parse_alternative_services(false), |
| 391 enable_alternative_service_with_different_host(true), | 391 enable_alternative_service_with_different_host(false), |
| 392 net_log(NULL) { | 392 net_log(NULL) { |
| 393 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; | 393 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; |
| 394 } | 394 } |
| 395 | 395 |
| 396 SpdySessionDependencies::~SpdySessionDependencies() {} | 396 SpdySessionDependencies::~SpdySessionDependencies() {} |
| 397 | 397 |
| 398 // static | 398 // static |
| 399 scoped_ptr<HttpNetworkSession> SpdySessionDependencies::SpdyCreateSession( | 399 scoped_ptr<HttpNetworkSession> SpdySessionDependencies::SpdyCreateSession( |
| 400 SpdySessionDependencies* session_deps) { | 400 SpdySessionDependencies* session_deps) { |
| 401 HttpNetworkSession::Params params = CreateSessionParams(session_deps); | 401 HttpNetworkSession::Params params = CreateSessionParams(session_deps); |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 } | 1341 } |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 void SpdyTestUtil::SetPriority(RequestPriority priority, | 1344 void SpdyTestUtil::SetPriority(RequestPriority priority, |
| 1345 SpdySynStreamIR* ir) const { | 1345 SpdySynStreamIR* ir) const { |
| 1346 ir->set_priority(ConvertRequestPriorityToSpdyPriority( | 1346 ir->set_priority(ConvertRequestPriorityToSpdyPriority( |
| 1347 priority, spdy_version())); | 1347 priority, spdy_version())); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 } // namespace net | 1350 } // namespace net |
| OLD | NEW |