| 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/receive_algorithm_interface.h" | 8 #include "net/quic/congestion_control/receive_algorithm_interface.h" |
| 9 #include "net/quic/congestion_control/send_algorithm_interface.h" | 9 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 10 #include "net/quic/quic_connection.h" | 10 #include "net/quic/quic_connection.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { | 186 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { |
| 187 return connection->ack_alarm_.get(); | 187 return connection->ack_alarm_.get(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 // static | 190 // static |
| 191 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { | 191 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { |
| 192 return connection->ping_alarm_.get(); | 192 return connection->ping_alarm_.get(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 // static | 195 // static |
| 196 QuicAlarm* QuicConnectionPeer::GetFecAlarm(QuicConnection* connection) { |
| 197 return connection->fec_alarm_.get(); |
| 198 } |
| 199 |
| 200 // static |
| 196 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm( | 201 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm( |
| 197 QuicConnection* connection) { | 202 QuicConnection* connection) { |
| 198 return connection->resume_writes_alarm_.get(); | 203 return connection->resume_writes_alarm_.get(); |
| 199 } | 204 } |
| 200 | 205 |
| 201 // static | 206 // static |
| 202 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm( | 207 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm( |
| 203 QuicConnection* connection) { | 208 QuicConnection* connection) { |
| 204 return connection->retransmission_alarm_.get(); | 209 return connection->retransmission_alarm_.get(); |
| 205 } | 210 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 connection->sequence_number_of_last_sent_packet_ = number; | 264 connection->sequence_number_of_last_sent_packet_ = number; |
| 260 } | 265 } |
| 261 | 266 |
| 262 // static | 267 // static |
| 263 QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) { | 268 QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) { |
| 264 return &connection->stats_; | 269 return &connection->stats_; |
| 265 } | 270 } |
| 266 | 271 |
| 267 } // namespace test | 272 } // namespace test |
| 268 } // namespace net | 273 } // namespace net |
| OLD | NEW |