Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 1874613002: relnote: add connection option "SPSH" to indicate whether client wants to do server push or not, wh… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/tools/quic/quic_server_session_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/tools/quic/quic_server_session_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698