| 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_packet_writer.h" | 9 #include "net/quic/quic_packet_writer.h" |
| 10 #include "net/quic/quic_received_packet_manager.h" | 10 #include "net/quic/quic_received_packet_manager.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); | 139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); |
| 140 } | 140 } |
| 141 | 141 |
| 142 // static | 142 // static |
| 143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( | 143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( |
| 144 QuicConnection* connection) { | 144 QuicConnection* connection) { |
| 145 return connection->helper_; | 145 return connection->helper_; |
| 146 } | 146 } |
| 147 | 147 |
| 148 // static | 148 // static |
| 149 QuicAlarmFactory* QuicConnectionPeer::GetAlarmFactory( |
| 150 QuicConnection* connection) { |
| 151 return connection->alarm_factory_; |
| 152 } |
| 153 |
| 154 // static |
| 149 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { | 155 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { |
| 150 return &connection->framer_; | 156 return &connection->framer_; |
| 151 } | 157 } |
| 152 | 158 |
| 153 // static | 159 // static |
| 154 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { | 160 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { |
| 155 return connection->ack_alarm_.get(); | 161 return connection->ack_alarm_.get(); |
| 156 } | 162 } |
| 157 | 163 |
| 158 // static | 164 // static |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } | 263 } |
| 258 | 264 |
| 259 // static | 265 // static |
| 260 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, | 266 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, |
| 261 QuicConnection::AckMode ack_mode) { | 267 QuicConnection::AckMode ack_mode) { |
| 262 connection->ack_mode_ = ack_mode; | 268 connection->ack_mode_ = ack_mode; |
| 263 } | 269 } |
| 264 | 270 |
| 265 } // namespace test | 271 } // namespace test |
| 266 } // namespace net | 272 } // namespace net |
| OLD | NEW |