| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 client_supported_versions_ = GetParam().client_supported_versions; | 164 client_supported_versions_ = GetParam().client_supported_versions; |
| 165 server_supported_versions_ = GetParam().server_supported_versions; | 165 server_supported_versions_ = GetParam().server_supported_versions; |
| 166 negotiated_version_ = GetParam().negotiated_version; | 166 negotiated_version_ = GetParam().negotiated_version; |
| 167 FLAGS_enable_quic_pacing = GetParam().use_pacing; | 167 FLAGS_enable_quic_pacing = GetParam().use_pacing; |
| 168 | 168 |
| 169 if (negotiated_version_ >= QUIC_VERSION_17) { | 169 if (negotiated_version_ >= QUIC_VERSION_17) { |
| 170 FLAGS_enable_quic_stream_flow_control_2 = true; | 170 FLAGS_enable_quic_stream_flow_control_2 = true; |
| 171 } | 171 } |
| 172 if (negotiated_version_ >= QUIC_VERSION_19) { | 172 if (negotiated_version_ >= QUIC_VERSION_19) { |
| 173 FLAGS_enable_quic_connection_flow_control = true; | 173 FLAGS_enable_quic_connection_flow_control_2 = true; |
| 174 } | 174 } |
| 175 VLOG(1) << "Using Configuration: " << GetParam(); | 175 VLOG(1) << "Using Configuration: " << GetParam(); |
| 176 | 176 |
| 177 client_config_.SetDefaults(); | 177 client_config_.SetDefaults(); |
| 178 server_config_.SetDefaults(); | 178 server_config_.SetDefaults(); |
| 179 | 179 |
| 180 // Use different flow control windows for client/server. | 180 // Use different flow control windows for client/server. |
| 181 client_initial_flow_control_receive_window_ = | 181 client_initial_flow_control_receive_window_ = |
| 182 2 * kInitialFlowControlWindowForTest; | 182 2 * kInitialFlowControlWindowForTest; |
| 183 server_initial_flow_control_receive_window_ = | 183 server_initial_flow_control_receive_window_ = |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 QuicSession* session = dispatcher->session_map().begin()->second; | 1067 QuicSession* session = dispatcher->session_map().begin()->second; |
| 1068 EXPECT_EQ(kClientIFCW, | 1068 EXPECT_EQ(kClientIFCW, |
| 1069 session->config()->ReceivedInitialFlowControlWindowBytes()); | 1069 session->config()->ReceivedInitialFlowControlWindowBytes()); |
| 1070 server_thread_->Resume(); | 1070 server_thread_->Resume(); |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 } // namespace | 1073 } // namespace |
| 1074 } // namespace test | 1074 } // namespace test |
| 1075 } // namespace tools | 1075 } // namespace tools |
| 1076 } // namespace net | 1076 } // namespace net |
| OLD | NEW |