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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 strike_register_no_startup_period_(false) { | 162 strike_register_no_startup_period_(false) { |
163 net::IPAddressNumber ip; | 163 net::IPAddressNumber ip; |
164 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); | 164 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); |
165 server_address_ = IPEndPoint(ip, 0); | 165 server_address_ = IPEndPoint(ip, 0); |
166 | 166 |
167 client_supported_versions_ = GetParam().client_supported_versions; | 167 client_supported_versions_ = GetParam().client_supported_versions; |
168 server_supported_versions_ = GetParam().server_supported_versions; | 168 server_supported_versions_ = GetParam().server_supported_versions; |
169 negotiated_version_ = GetParam().negotiated_version; | 169 negotiated_version_ = GetParam().negotiated_version; |
170 FLAGS_enable_quic_pacing = GetParam().use_pacing; | 170 FLAGS_enable_quic_pacing = GetParam().use_pacing; |
171 | 171 |
172 if (negotiated_version_ >= QUIC_VERSION_17) { | |
173 FLAGS_enable_quic_stream_flow_control_2 = true; | |
174 } | |
175 if (negotiated_version_ >= QUIC_VERSION_19) { | 172 if (negotiated_version_ >= QUIC_VERSION_19) { |
176 FLAGS_enable_quic_connection_flow_control_2 = true; | 173 FLAGS_enable_quic_connection_flow_control_2 = true; |
177 } | 174 } |
178 VLOG(1) << "Using Configuration: " << GetParam(); | 175 VLOG(1) << "Using Configuration: " << GetParam(); |
179 | 176 |
180 client_config_.SetDefaults(); | 177 client_config_.SetDefaults(); |
181 server_config_.SetDefaults(); | 178 server_config_.SetDefaults(); |
182 | 179 |
183 // Use different flow control windows for client/server. | 180 // Use different flow control windows for client/server. |
184 client_config_.SetInitialFlowControlWindowToSend( | 181 client_config_.SetInitialFlowControlWindowToSend( |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 session->config()->ReceivedInitialSessionFlowControlWindowBytes()); | 1231 session->config()->ReceivedInitialSessionFlowControlWindowBytes()); |
1235 EXPECT_EQ(kClientSessionIFCW, QuicFlowControllerPeer::SendWindowOffset( | 1232 EXPECT_EQ(kClientSessionIFCW, QuicFlowControllerPeer::SendWindowOffset( |
1236 session->flow_controller())); | 1233 session->flow_controller())); |
1237 server_thread_->Resume(); | 1234 server_thread_->Resume(); |
1238 } | 1235 } |
1239 | 1236 |
1240 } // namespace | 1237 } // namespace |
1241 } // namespace test | 1238 } // namespace test |
1242 } // namespace tools | 1239 } // namespace tools |
1243 } // namespace net | 1240 } // namespace net |
OLD | NEW |