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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/cubic_bytes.h" 5 #include "net/quic/core/congestion_control/cubic_bytes.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/test_tools/mock_clock.h" 8 #include "net/quic/test_tools/mock_clock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace net { 11 namespace net {
12 namespace test { 12 namespace test {
13 13
14 const float kBeta = 0.7f; // Default Cubic backoff factor. 14 const float kBeta = 0.7f; // Default Cubic backoff factor.
15 const uint32_t kNumConnections = 2; 15 const uint32_t kNumConnections = 2;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 clock_.AdvanceTime(hundred_ms_); 111 clock_.AdvanceTime(hundred_ms_);
112 current_cwnd = 112 current_cwnd =
113 cubic_.CongestionWindowAfterAck(kDefaultTCPMSS, current_cwnd, rtt_min); 113 cubic_.CongestionWindowAfterAck(kDefaultTCPMSS, current_cwnd, rtt_min);
114 } 114 }
115 expected_cwnd = 422 * kDefaultTCPMSS; 115 expected_cwnd = 422 * kDefaultTCPMSS;
116 EXPECT_EQ(expected_cwnd, current_cwnd); 116 EXPECT_EQ(expected_cwnd, current_cwnd);
117 } 117 }
118 118
119 } // namespace test 119 } // namespace test
120 } // namespace net 120 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/cubic_bytes.cc ('k') | net/quic/core/congestion_control/cubic_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698