| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) { | 172 if (negotiated_version_ >= QUIC_VERSION_17) { |
| 173 FLAGS_enable_quic_stream_flow_control_2 = true; | 173 FLAGS_enable_quic_stream_flow_control_2 = true; |
| 174 } | 174 } |
| 175 if (negotiated_version_ >= QUIC_VERSION_19) { | 175 if (negotiated_version_ >= QUIC_VERSION_19) { |
| 176 FLAGS_enable_quic_connection_flow_control = true; | 176 FLAGS_enable_quic_connection_flow_control_2 = true; |
| 177 } | 177 } |
| 178 VLOG(1) << "Using Configuration: " << GetParam(); | 178 VLOG(1) << "Using Configuration: " << GetParam(); |
| 179 | 179 |
| 180 client_config_.SetDefaults(); | 180 client_config_.SetDefaults(); |
| 181 server_config_.SetDefaults(); | 181 server_config_.SetDefaults(); |
| 182 | 182 |
| 183 // Use different flow control windows for client/server. | 183 // Use different flow control windows for client/server. |
| 184 client_config_.SetInitialFlowControlWindowToSend( | 184 client_config_.SetInitialFlowControlWindowToSend( |
| 185 2 * kInitialFlowControlWindowForTest); | 185 2 * kInitialFlowControlWindowForTest); |
| 186 server_config_.SetInitialFlowControlWindowToSend( | 186 server_config_.SetInitialFlowControlWindowToSend( |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 QuicSession* session = dispatcher->session_map().begin()->second; | 1133 QuicSession* session = dispatcher->session_map().begin()->second; |
| 1134 EXPECT_EQ(kClientIFCW, | 1134 EXPECT_EQ(kClientIFCW, |
| 1135 session->config()->ReceivedInitialFlowControlWindowBytes()); | 1135 session->config()->ReceivedInitialFlowControlWindowBytes()); |
| 1136 server_thread_->Resume(); | 1136 server_thread_->Resume(); |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 } // namespace | 1139 } // namespace |
| 1140 } // namespace test | 1140 } // namespace test |
| 1141 } // namespace tools | 1141 } // namespace tools |
| 1142 } // namespace net | 1142 } // namespace net |
| OLD | NEW |