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

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

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 months 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"
10 #include "net/quic/core/crypto/crypto_protocol.h" 9 #include "net/quic/core/crypto/crypto_protocol.h"
11 #include "net/quic/core/quic_constants.h" 10 #include "net/quic/core/quic_constants.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace net { 13 namespace net {
15 namespace test { 14 namespace test {
16 15
17 namespace { 16 namespace {
18 // Constant based on TCP defaults. 17 // Constant based on TCP defaults.
19 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS; 18 const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 prr.TimeUntilSend(congestion_window, bytes_in_flight, 123 prr.TimeUntilSend(congestion_window, bytes_in_flight,
125 ssthresh_after_loss * kMaxSegmentSize)); 124 ssthresh_after_loss * kMaxSegmentSize));
126 // Send a packet in response. 125 // Send a packet in response.
127 prr.OnPacketSent(kMaxSegmentSize); 126 prr.OnPacketSent(kMaxSegmentSize);
128 bytes_in_flight += kMaxSegmentSize; 127 bytes_in_flight += kMaxSegmentSize;
129 } 128 }
130 } 129 }
131 130
132 } // namespace test 131 } // namespace test
133 } // namespace net 132 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/pacing_sender_test.cc ('k') | net/quic/core/congestion_control/rtt_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698