| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_connection_peer.h" | 5 #include "net/quic/test_tools/quic_connection_peer.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/congestion_control/send_algorithm_interface.h" | 8 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
| 10 #include "net/quic/quic_packet_writer.h" | 10 #include "net/quic/quic_packet_writer.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const IPEndPoint& peer_address) { | 122 const IPEndPoint& peer_address) { |
| 123 connection->peer_address_ = peer_address; | 123 connection->peer_address_ = peer_address; |
| 124 } | 124 } |
| 125 | 125 |
| 126 // static | 126 // static |
| 127 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) { | 127 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) { |
| 128 return connection->silent_close_enabled_; | 128 return connection->silent_close_enabled_; |
| 129 } | 129 } |
| 130 | 130 |
| 131 // static | 131 // static |
| 132 bool QuicConnectionPeer::IsMultipathEnabled(QuicConnection* connection) { |
| 133 return connection->multipath_enabled_; |
| 134 } |
| 135 |
| 136 // static |
| 132 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, | 137 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, |
| 133 QuicFramer* framer) { | 138 QuicFramer* framer) { |
| 134 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); | 139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); |
| 135 } | 140 } |
| 136 | 141 |
| 137 // static | 142 // static |
| 138 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( | 143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( |
| 139 QuicConnection* connection) { | 144 QuicConnection* connection) { |
| 140 return connection->helper_; | 145 return connection->helper_; |
| 141 } | 146 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 connection->next_mtu_probe_at_ = number; | 267 connection->next_mtu_probe_at_ = number; |
| 263 } | 268 } |
| 264 | 269 |
| 265 // static | 270 // static |
| 266 void QuicConnectionPeer::EnableAckDecimation(QuicConnection* connection) { | 271 void QuicConnectionPeer::EnableAckDecimation(QuicConnection* connection) { |
| 267 connection->ack_decimation_enabled_ = true; | 272 connection->ack_decimation_enabled_ = true; |
| 268 } | 273 } |
| 269 | 274 |
| 270 } // namespace test | 275 } // namespace test |
| 271 } // namespace net | 276 } // namespace net |
| OLD | NEW |