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 "net/quic/core/quic_session.h" | 5 #include "net/quic/core/quic_session.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(session_.config(), | 1087 QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(session_.config(), |
1088 kInvalidWindow); | 1088 kInvalidWindow); |
1089 | 1089 |
1090 EXPECT_CALL(*connection_, | 1090 EXPECT_CALL(*connection_, |
1091 CloseConnection(QUIC_FLOW_CONTROL_INVALID_WINDOW, _, _)); | 1091 CloseConnection(QUIC_FLOW_CONTROL_INVALID_WINDOW, _, _)); |
1092 session_.OnConfigNegotiated(); | 1092 session_.OnConfigNegotiated(); |
1093 } | 1093 } |
1094 | 1094 |
1095 // Test negotiation of custom server initial flow control window. | 1095 // Test negotiation of custom server initial flow control window. |
1096 TEST_P(QuicSessionTestServer, CustomFlowControlWindow) { | 1096 TEST_P(QuicSessionTestServer, CustomFlowControlWindow) { |
1097 FLAGS_quic_reloadable_flag_quic_large_ifw_options = true; | |
1098 QuicTagVector copt; | 1097 QuicTagVector copt; |
1099 copt.push_back(kIFW7); | 1098 copt.push_back(kIFW7); |
1100 QuicConfigPeer::SetReceivedConnectionOptions(session_.config(), copt); | 1099 QuicConfigPeer::SetReceivedConnectionOptions(session_.config(), copt); |
1101 | 1100 |
1102 session_.OnConfigNegotiated(); | 1101 session_.OnConfigNegotiated(); |
1103 EXPECT_EQ(192 * 1024u, QuicFlowControllerPeer::ReceiveWindowSize( | 1102 EXPECT_EQ(192 * 1024u, QuicFlowControllerPeer::ReceiveWindowSize( |
1104 session_.flow_controller())); | 1103 session_.flow_controller())); |
1105 } | 1104 } |
1106 | 1105 |
1107 TEST_P(QuicSessionTestServer, FlowControlWithInvalidFinalOffset) { | 1106 TEST_P(QuicSessionTestServer, FlowControlWithInvalidFinalOffset) { |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 if (version() != QUIC_VERSION_36) { | 1308 if (version() != QUIC_VERSION_36) { |
1310 EXPECT_FALSE(session_.force_hol_blocking()); | 1309 EXPECT_FALSE(session_.force_hol_blocking()); |
1311 } else { | 1310 } else { |
1312 EXPECT_TRUE(session_.force_hol_blocking()); | 1311 EXPECT_TRUE(session_.force_hol_blocking()); |
1313 } | 1312 } |
1314 } | 1313 } |
1315 | 1314 |
1316 } // namespace | 1315 } // namespace |
1317 } // namespace test | 1316 } // namespace test |
1318 } // namespace net | 1317 } // namespace net |
OLD | NEW |