| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/quic/test_tools/quic_stream_factory_peer.h" | 5 #include "net/quic/test_tools/quic_stream_factory_peer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "net/cert/x509_certificate.h" | 10 #include "net/cert/x509_certificate.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 base::TaskRunner* task_runner) { | 70 base::TaskRunner* task_runner) { |
| 71 factory->task_runner_ = task_runner; | 71 factory->task_runner_ = task_runner; |
| 72 } | 72 } |
| 73 | 73 |
| 74 int QuicStreamFactoryPeer::GetNumberOfLossyConnections( | 74 int QuicStreamFactoryPeer::GetNumberOfLossyConnections( |
| 75 QuicStreamFactory* factory, | 75 QuicStreamFactory* factory, |
| 76 uint16_t port) { | 76 uint16_t port) { |
| 77 return factory->number_of_lossy_connections_[port]; | 77 return factory->number_of_lossy_connections_[port]; |
| 78 } | 78 } |
| 79 | 79 |
| 80 QuicTime::Delta QuicStreamFactoryPeer::GetPingTimeout( |
| 81 QuicStreamFactory* factory) { |
| 82 return factory->ping_timeout_; |
| 83 } |
| 84 |
| 80 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory, | 85 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory, |
| 81 uint16_t port) { | 86 uint16_t port) { |
| 82 return factory->IsQuicDisabled(port); | 87 return factory->IsQuicDisabled(port); |
| 83 } | 88 } |
| 84 | 89 |
| 85 bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) { | 90 bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) { |
| 86 return factory->delay_tcp_race_; | 91 return factory->delay_tcp_race_; |
| 87 } | 92 } |
| 88 | 93 |
| 89 void QuicStreamFactoryPeer::SetDelayTcpRace(QuicStreamFactory* factory, | 94 void QuicStreamFactoryPeer::SetDelayTcpRace(QuicStreamFactory* factory, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 return &factory->push_promise_index_; | 206 return &factory->push_promise_index_; |
| 202 } | 207 } |
| 203 | 208 |
| 204 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( | 209 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( |
| 205 QuicStreamFactory* factory) { | 210 QuicStreamFactory* factory) { |
| 206 return factory->num_push_streams_created_; | 211 return factory->num_push_streams_created_; |
| 207 } | 212 } |
| 208 | 213 |
| 209 } // namespace test | 214 } // namespace test |
| 210 } // namespace net | 215 } // namespace net |
| OLD | NEW |