Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Side by Side Diff: net/quic/core/congestion_control/prr_sender_test.cc

Issue 2566703002: Various formatting cleanups to net/quic/core/frames (Closed)
Patch Set: Fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/core/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/core/crypto/crypto_protocol.h" 10 #include "net/quic/core/crypto/crypto_protocol.h"
11 #include "net/quic/core/quic_bandwidth.h"
12 #include "net/quic/core/quic_constants.h" 11 #include "net/quic/core/quic_constants.h"
13 #include "net/quic/core/quic_packets.h"
14 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
15 13
16 namespace net { 14 namespace net {
17 namespace test { 15 namespace test {
18 16
19 namespace { 17 namespace {
20 // Constant based on TCP defaults. 18 // Constant based on TCP defaults.
21 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS; 19 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS;
22 } // namespace 20 } // namespace
23 21
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 prr.TimeUntilSend(congestion_window, bytes_in_flight, 124 prr.TimeUntilSend(congestion_window, bytes_in_flight,
127 ssthresh_after_loss * kMaxSegmentSize)); 125 ssthresh_after_loss * kMaxSegmentSize));
128 // Send a packet in response. 126 // Send a packet in response.
129 prr.OnPacketSent(kMaxSegmentSize); 127 prr.OnPacketSent(kMaxSegmentSize);
130 bytes_in_flight += kMaxSegmentSize; 128 bytes_in_flight += kMaxSegmentSize;
131 } 129 }
132 } 130 }
133 131
134 } // namespace test 132 } // namespace test
135 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/prr_sender.h ('k') | net/quic/core/congestion_control/rtt_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698