OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/prr_sender.h" | 5 #include "net/quic/core/congestion_control/prr_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/quic/crypto/crypto_protocol.h" | 10 #include "net/quic/core/crypto/crypto_protocol.h" |
11 #include "net/quic/quic_bandwidth.h" | 11 #include "net/quic/core/quic_bandwidth.h" |
12 #include "net/quic/quic_protocol.h" | 12 #include "net/quic/core/quic_protocol.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 namespace { | 18 namespace { |
19 // Constant based on TCP defaults. | 19 // Constant based on TCP defaults. |
20 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS; | 20 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS; |
21 } // namespace | 21 } // namespace |
22 | 22 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 prr.TimeUntilSend(congestion_window, bytes_in_flight, | 125 prr.TimeUntilSend(congestion_window, bytes_in_flight, |
126 ssthresh_after_loss * kMaxSegmentSize)); | 126 ssthresh_after_loss * kMaxSegmentSize)); |
127 // Send a packet in response. | 127 // Send a packet in response. |
128 prr.OnPacketSent(kMaxSegmentSize); | 128 prr.OnPacketSent(kMaxSegmentSize); |
129 bytes_in_flight += kMaxSegmentSize; | 129 bytes_in_flight += kMaxSegmentSize; |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 } // namespace test | 133 } // namespace test |
134 } // namespace net | 134 } // namespace net |
OLD | NEW |