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

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

Issue 2230223003: fix bug in QUIC force HOL blocking experiment, guarded by --quic_enable_version_36_v2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129468670
Patch Set: git pull from up stream Created 4 years, 4 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/core/quic_protocol_test.cc ('k') | no next file » | 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 copt.push_back(kSPSH); 422 copt.push_back(kSPSH);
423 } 423 }
424 if (GetParam().client_supports_stateless_rejects) { 424 if (GetParam().client_supports_stateless_rejects) {
425 copt.push_back(kSREJ); 425 copt.push_back(kSREJ);
426 } 426 }
427 if (GetParam().disable_hpack_dynamic_table) { 427 if (GetParam().disable_hpack_dynamic_table) {
428 copt.push_back(kDHDT); 428 copt.push_back(kDHDT);
429 } 429 }
430 if (GetParam().force_hol_blocking) { 430 if (GetParam().force_hol_blocking) {
431 client_config_.SetForceHolBlocking(); 431 client_config_.SetForceHolBlocking();
432 QuicConfigPeer::SetReceivedForceHolBlocking(&server_config_);
433 } 432 }
434 client_config_.SetConnectionOptionsToSend(copt); 433 client_config_.SetConnectionOptionsToSend(copt);
435 434
436 // Start the server first, because CreateQuicClient() attempts 435 // Start the server first, because CreateQuicClient() attempts
437 // to connect to the server. 436 // to connect to the server.
438 StartServer(); 437 StartServer();
439 438
440 CreateClientWithWriter(); 439 CreateClientWithWriter();
441 static EpollEvent event(EPOLLOUT, false); 440 static EpollEvent event(EPOLLOUT, false);
442 if (client_writer_ != nullptr) { 441 if (client_writer_ != nullptr) {
(...skipping 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2877 EXPECT_EQ(kBarResponseBody, client_->response_body()); 2876 EXPECT_EQ(kBarResponseBody, client_->response_body());
2878 QuicConnectionStats client_stats = 2877 QuicConnectionStats client_stats =
2879 client_->client()->session()->connection()->GetStats(); 2878 client_->client()->session()->connection()->GetStats();
2880 EXPECT_EQ(0u, client_stats.packets_lost); 2879 EXPECT_EQ(0u, client_stats.packets_lost);
2881 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); 2880 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
2882 } 2881 }
2883 2882
2884 } // namespace 2883 } // namespace
2885 } // namespace test 2884 } // namespace test
2886 } // namespace net 2885 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_protocol_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698