| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { | 160 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { |
| 161 return connection->ack_alarm_.get(); | 161 return connection->ack_alarm_.get(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 // static | 164 // static |
| 165 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { | 165 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { |
| 166 return connection->ping_alarm_.get(); | 166 return connection->ping_alarm_.get(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 // static | 169 // static |
| 170 QuicAlarm* QuicConnectionPeer::GetFecAlarm(QuicConnection* connection) { | |
| 171 return connection->fec_alarm_.get(); | |
| 172 } | |
| 173 | |
| 174 // static | |
| 175 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm( | 170 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm( |
| 176 QuicConnection* connection) { | 171 QuicConnection* connection) { |
| 177 return connection->resume_writes_alarm_.get(); | 172 return connection->resume_writes_alarm_.get(); |
| 178 } | 173 } |
| 179 | 174 |
| 180 // static | 175 // static |
| 181 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm( | 176 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm( |
| 182 QuicConnection* connection) { | 177 QuicConnection* connection) { |
| 183 return connection->retransmission_alarm_.get(); | 178 return connection->retransmission_alarm_.get(); |
| 184 } | 179 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 262 } |
| 268 | 263 |
| 269 // static | 264 // static |
| 270 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, | 265 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, |
| 271 QuicConnection::AckMode ack_mode) { | 266 QuicConnection::AckMode ack_mode) { |
| 272 connection->ack_mode_ = ack_mode; | 267 connection->ack_mode_ = ack_mode; |
| 273 } | 268 } |
| 274 | 269 |
| 275 } // namespace test | 270 } // namespace test |
| 276 } // namespace net | 271 } // namespace net |
| OLD | NEW |