OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <algorithm> | 5 #include <algorithm> |
6 #include <map> | 6 #include <map> |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "net/quic/core/congestion_control/rtt_stats.h" | 9 #include "net/quic/core/congestion_control/rtt_stats.h" |
10 #include "net/quic/core/congestion_control/send_algorithm_interface.h" | 10 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 : simulator_(), | 210 : simulator_(), |
211 quic_sender_(&simulator_, | 211 quic_sender_(&simulator_, |
212 "QUIC sender", | 212 "QUIC sender", |
213 "Receiver", | 213 "Receiver", |
214 Perspective::IS_CLIENT, | 214 Perspective::IS_CLIENT, |
215 42), | 215 42), |
216 receiver_(&simulator_, | 216 receiver_(&simulator_, |
217 "Receiver", | 217 "Receiver", |
218 "QUIC sender", | 218 "QUIC sender", |
219 Perspective::IS_SERVER, | 219 Perspective::IS_SERVER, |
220 42) { | 220 net::test::GetPeerInMemoryConnectionId(42)) { |
221 rtt_stats_ = quic_sender_.connection()->sent_packet_manager().GetRttStats(); | 221 rtt_stats_ = quic_sender_.connection()->sent_packet_manager().GetRttStats(); |
222 sender_ = SendAlgorithmInterface::Create( | 222 sender_ = SendAlgorithmInterface::Create( |
223 simulator_.GetClock(), rtt_stats_, | 223 simulator_.GetClock(), rtt_stats_, |
224 QuicSentPacketManagerPeer::GetUnackedPacketMap( | 224 QuicSentPacketManagerPeer::GetUnackedPacketMap( |
225 QuicConnectionPeer::GetSentPacketManager( | 225 QuicConnectionPeer::GetSentPacketManager( |
226 quic_sender_.connection())), | 226 quic_sender_.connection())), |
227 GetParam().congestion_control_type, &random_, &stats_, | 227 GetParam().congestion_control_type, &random_, &stats_, |
228 kInitialCongestionWindowPackets); | 228 kInitialCongestionWindowPackets); |
229 | 229 |
230 SetExperimentalOptionsInServerConfig(); | 230 SetExperimentalOptionsInServerConfig(); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 const QuicTime::Delta maximum_elapsed_time = | 442 const QuicTime::Delta maximum_elapsed_time = |
443 EstimatedElapsedTime(kTransferSizeBytes, kTestLinkWiredBandwidth, | 443 EstimatedElapsedTime(kTransferSizeBytes, kTestLinkWiredBandwidth, |
444 kTestLinkSmallRTTDelay) * | 444 kTestLinkSmallRTTDelay) * |
445 1.2; | 445 1.2; |
446 DoSimpleTransfer(kTransferSizeBytes, maximum_elapsed_time); | 446 DoSimpleTransfer(kTransferSizeBytes, maximum_elapsed_time); |
447 PrintTransferStats(); | 447 PrintTransferStats(); |
448 } | 448 } |
449 | 449 |
450 } // namespace test | 450 } // namespace test |
451 } // namespace net | 451 } // namespace net |
OLD | NEW |