| 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 <sys/epoll.h> | 6 #include <sys/epoll.h> |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return &session->connection()->sent_packet_manager(); | 336 return &session->connection()->sent_packet_manager(); |
| 337 } | 337 } |
| 338 | 338 |
| 339 bool Initialize() { | 339 bool Initialize() { |
| 340 QuicTagVector copt; | 340 QuicTagVector copt; |
| 341 server_config_.SetConnectionOptionsToSend(copt); | 341 server_config_.SetConnectionOptionsToSend(copt); |
| 342 | 342 |
| 343 // TODO(nimia): Consider setting the congestion control algorithm for the | 343 // TODO(nimia): Consider setting the congestion control algorithm for the |
| 344 // client as well according to the test parameter. | 344 // client as well according to the test parameter. |
| 345 copt.push_back(GetParam().congestion_control_tag); | 345 copt.push_back(GetParam().congestion_control_tag); |
| 346 copt.push_back(kSPSH); |
| 346 | 347 |
| 347 if (GetParam().client_supports_stateless_rejects) { | 348 if (GetParam().client_supports_stateless_rejects) { |
| 348 copt.push_back(kSREJ); | 349 copt.push_back(kSREJ); |
| 349 } | 350 } |
| 350 if (GetParam().auto_tune_flow_control_window) { | 351 if (GetParam().auto_tune_flow_control_window) { |
| 351 copt.push_back(kAFCW); | 352 copt.push_back(kAFCW); |
| 352 copt.push_back(kIFW5); | 353 copt.push_back(kIFW5); |
| 353 } | 354 } |
| 354 client_config_.SetConnectionOptionsToSend(copt); | 355 client_config_.SetConnectionOptionsToSend(copt); |
| 355 | 356 |
| (...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2615 client_->client()->WaitForCryptoHandshakeConfirmed(); | 2616 client_->client()->WaitForCryptoHandshakeConfirmed(); |
| 2616 SetPacketLossPercentage(1); | 2617 SetPacketLossPercentage(1); |
| 2617 client_->SendRequest("/huge_response"); | 2618 client_->SendRequest("/huge_response"); |
| 2618 client_->WaitForResponse(); | 2619 client_->WaitForResponse(); |
| 2619 VerifyCleanConnection(false); | 2620 VerifyCleanConnection(false); |
| 2620 } | 2621 } |
| 2621 | 2622 |
| 2622 } // namespace | 2623 } // namespace |
| 2623 } // namespace test | 2624 } // namespace test |
| 2624 } // namespace net | 2625 } // namespace net |
| OLD | NEW |