OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |