| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/congestion_control/send_algorithm_simulator.h" | 5 #include "net/quic/congestion_control/send_algorithm_simulator.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 11 #include "net/quic/crypto/quic_random.h" | 11 #include "net/quic/crypto/quic_random.h" |
| 12 | 12 |
| 13 using std::list; | 13 using std::list; |
| 14 using std::make_pair; | 14 using std::make_pair; |
| 15 using std::max; | 15 using std::max; |
| 16 using std::min; | 16 using std::min; |
| 17 using std::string; |
| 17 using std::vector; | 18 using std::vector; |
| 18 | 19 |
| 19 namespace net { | 20 namespace net { |
| 20 | 21 |
| 21 namespace { | 22 namespace { |
| 22 | 23 |
| 23 const QuicByteCount kPacketSize = 1200; | 24 const QuicByteCount kPacketSize = 1200; |
| 24 | 25 |
| 25 } // namespace | 26 } // namespace |
| 26 | 27 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 } | 387 } |
| 387 transfer->bytes_in_flight += kPacketSize; | 388 transfer->bytes_in_flight += kPacketSize; |
| 388 } | 389 } |
| 389 | 390 |
| 390 // Advance the time by |delta| without sending anything. | 391 // Advance the time by |delta| without sending anything. |
| 391 void SendAlgorithmSimulator::AdvanceTime(QuicTime::Delta delta) { | 392 void SendAlgorithmSimulator::AdvanceTime(QuicTime::Delta delta) { |
| 392 clock_->AdvanceTime(delta); | 393 clock_->AdvanceTime(delta); |
| 393 } | 394 } |
| 394 | 395 |
| 395 } // namespace net | 396 } // namespace net |
| OLD | NEW |