| OLD | NEW | 
|---|
| 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/core/congestion_control/cubic_bytes.h" | 5 #include "net/quic/core/congestion_control/cubic_bytes.h" | 
| 6 | 6 | 
|  | 7 #include <cstdint> | 
|  | 8 | 
| 7 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 8 #include "net/quic/core/quic_flags.h" | 10 #include "net/quic/core/quic_flags.h" | 
| 9 #include "net/quic/test_tools/mock_clock.h" | 11 #include "net/quic/test_tools/mock_clock.h" | 
| 10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" | 
| 11 | 13 | 
| 12 namespace net { | 14 namespace net { | 
| 13 namespace test { | 15 namespace test { | 
| 14 | 16 | 
| 15 const float kBeta = 0.7f;  // Default Cubic backoff factor. | 17 const float kBeta = 0.7f;  // Default Cubic backoff factor. | 
| 16 const uint32_t kNumConnections = 2; | 18 const uint32_t kNumConnections = 2; | 
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 259     clock_.AdvanceTime(hundred_ms_); | 261     clock_.AdvanceTime(hundred_ms_); | 
| 260     current_cwnd = | 262     current_cwnd = | 
| 261         cubic_.CongestionWindowAfterAck(kDefaultTCPMSS, current_cwnd, rtt_min); | 263         cubic_.CongestionWindowAfterAck(kDefaultTCPMSS, current_cwnd, rtt_min); | 
| 262   } | 264   } | 
| 263   expected_cwnd = 553632; | 265   expected_cwnd = 553632; | 
| 264   EXPECT_EQ(expected_cwnd, current_cwnd); | 266   EXPECT_EQ(expected_cwnd, current_cwnd); | 
| 265 } | 267 } | 
| 266 | 268 | 
| 267 }  // namespace test | 269 }  // namespace test | 
| 268 }  // namespace net | 270 }  // namespace net | 
| OLD | NEW | 
|---|