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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 expected_congestion_control_type = kBBR; | 895 expected_congestion_control_type = kBBR; |
896 break; | 896 break; |
897 case kQBIC: | 897 case kQBIC: |
898 expected_congestion_control_type = kCubic; | 898 expected_congestion_control_type = kCubic; |
899 break; | 899 break; |
900 default: | 900 default: |
901 DLOG(FATAL) << "Unexpected congestion control tag"; | 901 DLOG(FATAL) << "Unexpected congestion control tag"; |
902 } | 902 } |
903 | 903 |
904 EXPECT_EQ(expected_congestion_control_type, | 904 EXPECT_EQ(expected_congestion_control_type, |
905 QuicSentPacketManagerPeer::GetCongestionControlAlgorithm( | 905 QuicSentPacketManagerPeer::GetSendAlgorithm( |
906 *GetSentPacketManagerFromFirstServerSession()) | 906 *GetSentPacketManagerFromFirstServerSession()) |
907 ->GetCongestionControlType()); | 907 ->GetCongestionControlType()); |
908 } | 908 } |
909 | 909 |
910 TEST_P(EndToEndTest, LimitMaxOpenStreams) { | 910 TEST_P(EndToEndTest, LimitMaxOpenStreams) { |
911 // Server limits the number of max streams to 2. | 911 // Server limits the number of max streams to 2. |
912 server_config_.SetMaxStreamsPerConnection(2, 2); | 912 server_config_.SetMaxStreamsPerConnection(2, 2); |
913 // Client tries to negotiate for 10. | 913 // Client tries to negotiate for 10. |
914 client_config_.SetMaxStreamsPerConnection(10, 5); | 914 client_config_.SetMaxStreamsPerConnection(10, 5); |
915 | 915 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 QuicSession* session = dispatcher->session_map().begin()->second; | 1359 QuicSession* session = dispatcher->session_map().begin()->second; |
1360 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( | 1360 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( |
1361 session).size()); | 1361 session).size()); |
1362 server_thread_->Resume(); | 1362 server_thread_->Resume(); |
1363 } | 1363 } |
1364 | 1364 |
1365 } // namespace | 1365 } // namespace |
1366 } // namespace test | 1366 } // namespace test |
1367 } // namespace tools | 1367 } // namespace tools |
1368 } // namespace net | 1368 } // namespace net |
OLD | NEW |