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/tools/quic/end_to_end_test.cc

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/socket/transport_client_socket_pool.cc ('k') | net/url_request/url_request_job.cc » ('j') | 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 <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 EXPECT_FALSE(client_->connected()); 878 EXPECT_FALSE(client_->connected());
879 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); 879 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error());
880 EXPECT_EQ(QUIC_TOO_MANY_OPEN_STREAMS, client_->connection_error()); 880 EXPECT_EQ(QUIC_TOO_MANY_OPEN_STREAMS, client_->connection_error());
881 } 881 }
882 882
883 TEST_P(EndToEndTest, NegotiateCongestionControl) { 883 TEST_P(EndToEndTest, NegotiateCongestionControl) {
884 ValueRestore<bool> old_flag(&FLAGS_quic_allow_bbr, true); 884 ValueRestore<bool> old_flag(&FLAGS_quic_allow_bbr, true);
885 ASSERT_TRUE(Initialize()); 885 ASSERT_TRUE(Initialize());
886 client_->client()->WaitForCryptoHandshakeConfirmed(); 886 client_->client()->WaitForCryptoHandshakeConfirmed();
887 887
888 CongestionControlType expected_congestion_control_type; 888 CongestionControlType expected_congestion_control_type = kReno;
889 switch (GetParam().congestion_control_tag) { 889 switch (GetParam().congestion_control_tag) {
890 case kRENO: 890 case kRENO:
891 expected_congestion_control_type = kReno; 891 expected_congestion_control_type = kReno;
892 break; 892 break;
893 case kTBBR: 893 case kTBBR:
894 expected_congestion_control_type = kBBR; 894 expected_congestion_control_type = kBBR;
895 break; 895 break;
896 case kQBIC: 896 case kQBIC:
897 expected_congestion_control_type = kCubic; 897 expected_congestion_control_type = kCubic;
898 break; 898 break;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 const QuicSentPacketManager& server_sent_packet_manager = 1366 const QuicSentPacketManager& server_sent_packet_manager =
1367 *GetSentPacketManagerFromFirstServerSession(); 1367 *GetSentPacketManagerFromFirstServerSession();
1368 EXPECT_TRUE(server_sent_packet_manager.using_pacing()); 1368 EXPECT_TRUE(server_sent_packet_manager.using_pacing());
1369 EXPECT_TRUE(client_sent_packet_manager.using_pacing()); 1369 EXPECT_TRUE(client_sent_packet_manager.using_pacing());
1370 } 1370 }
1371 1371
1372 } // namespace 1372 } // namespace
1373 } // namespace test 1373 } // namespace test
1374 } // namespace tools 1374 } // namespace tools
1375 } // namespace net 1375 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698