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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 2560873003: Deprecate FLAGS_quic_default_enable_cubic_bytes (Closed)
Patch Set: 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
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <sys/epoll.h> 6 #include <sys/epoll.h>
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <list> 9 #include <list>
10 #include <memory> 10 #include <memory>
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1324
1325 CongestionControlType expected_congestion_control_type = kReno; 1325 CongestionControlType expected_congestion_control_type = kReno;
1326 switch (GetParam().congestion_control_tag) { 1326 switch (GetParam().congestion_control_tag) {
1327 case kRENO: 1327 case kRENO:
1328 expected_congestion_control_type = kReno; 1328 expected_congestion_control_type = kReno;
1329 break; 1329 break;
1330 case kTBBR: 1330 case kTBBR:
1331 expected_congestion_control_type = kBBR; 1331 expected_congestion_control_type = kBBR;
1332 break; 1332 break;
1333 case kQBIC: 1333 case kQBIC:
1334 expected_congestion_control_type = 1334 expected_congestion_control_type = kCubicBytes;
1335 FLAGS_quic_default_enable_cubic_bytes ? kCubicBytes : kCubic;
1336 break; 1335 break;
1337 default: 1336 default:
1338 DLOG(FATAL) << "Unexpected congestion control tag"; 1337 DLOG(FATAL) << "Unexpected congestion control tag";
1339 } 1338 }
1340 1339
1341 server_thread_->Pause(); 1340 server_thread_->Pause();
1342 EXPECT_EQ(expected_congestion_control_type, 1341 EXPECT_EQ(expected_congestion_control_type,
1343 QuicSentPacketManagerPeer::GetSendAlgorithm( 1342 QuicSentPacketManagerPeer::GetSendAlgorithm(
1344 *static_cast<const QuicSentPacketManager*>( 1343 *static_cast<const QuicSentPacketManager*>(
1345 GetSentPacketManagerFromFirstServerSession())) 1344 GetSentPacketManagerFromFirstServerSession()))
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 client_->WaitForResponse(); 2942 client_->WaitForResponse();
2944 EXPECT_EQ(kBarResponseBody, client_->response_body()); 2943 EXPECT_EQ(kBarResponseBody, client_->response_body());
2945 QuicConnectionStats client_stats = 2944 QuicConnectionStats client_stats =
2946 client_->client()->session()->connection()->GetStats(); 2945 client_->client()->session()->connection()->GetStats();
2947 EXPECT_EQ(0u, client_stats.packets_lost); 2946 EXPECT_EQ(0u, client_stats.packets_lost);
2948 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); 2947 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
2949 } 2948 }
2950 } // namespace 2949 } // namespace
2951 } // namespace test 2950 } // namespace test
2952 } // namespace net 2951 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698