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

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

Issue 2964583002: Landing Recent QUIC changes until Jun 27 19:50:48 2017 +0000 (Closed)
Patch Set: Created 3 years, 5 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/core/congestion_control/cubic_bytes.h" 5 #include "net/quic/core/congestion_control/cubic_bytes.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 8
9 #include "net/quic/platform/api/quic_flags.h" 9 #include "net/quic/platform/api/quic_flags.h"
10 #include "net/quic/platform/api/quic_str_cat.h" 10 #include "net/quic/platform/api/quic_str_cat.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "allow_per_ack_updates_", 57 "allow_per_ack_updates_",
58 params.param.allow_per_ack_updates); 58 params.param.allow_per_ack_updates);
59 } 59 }
60 60
61 std::vector<TestParams> GetTestParams() { 61 std::vector<TestParams> GetTestParams() {
62 std::vector<TestParams> params; 62 std::vector<TestParams> params;
63 for (bool fix_convex_mode : {true, false}) { 63 for (bool fix_convex_mode : {true, false}) {
64 for (bool fix_cubic_quantization : {true, false}) { 64 for (bool fix_cubic_quantization : {true, false}) {
65 for (bool fix_beta_last_max : {true, false}) { 65 for (bool fix_beta_last_max : {true, false}) {
66 for (bool allow_per_ack_updates : {true, false}) { 66 for (bool allow_per_ack_updates : {true, false}) {
67 if (!FLAGS_quic_reloadable_flag_quic_fix_cubic_convex_mode &&
68 fix_convex_mode) {
69 continue;
70 }
71 if (!FLAGS_quic_reloadable_flag_quic_fix_cubic_bytes_quantization &&
72 fix_cubic_quantization) {
73 continue;
74 }
75 if (!FLAGS_quic_reloadable_flag_quic_fix_beta_last_max &&
76 fix_beta_last_max) {
77 continue;
78 }
79 if (!FLAGS_quic_reloadable_flag_quic_enable_cubic_per_ack_updates &&
80 allow_per_ack_updates) {
81 continue;
82 }
83 TestParams param(fix_convex_mode, fix_cubic_quantization, 67 TestParams param(fix_convex_mode, fix_cubic_quantization,
84 fix_beta_last_max, allow_per_ack_updates); 68 fix_beta_last_max, allow_per_ack_updates);
85 params.push_back(param); 69 params.push_back(param);
86 } 70 }
87 } 71 }
88 } 72 }
89 } 73 }
90 return params; 74 return params;
91 } 75 }
92 76
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 clock_.AdvanceTime(hundred_ms_); 528 clock_.AdvanceTime(hundred_ms_);
545 current_cwnd = cubic_.CongestionWindowAfterAck( 529 current_cwnd = cubic_.CongestionWindowAfterAck(
546 kDefaultTCPMSS, current_cwnd, rtt_min, clock_.ApproximateNow()); 530 kDefaultTCPMSS, current_cwnd, rtt_min, clock_.ApproximateNow());
547 } 531 }
548 expected_cwnd = 553632; 532 expected_cwnd = 553632;
549 EXPECT_EQ(expected_cwnd, current_cwnd); 533 EXPECT_EQ(expected_cwnd, current_cwnd);
550 } 534 }
551 535
552 } // namespace test 536 } // namespace test
553 } // namespace net 537 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/bbr_sender_test.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