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

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

Issue 2550453002: Fixed integer signing bug in cubic bytes/packet implementation (Closed)
Patch Set: Created 4 years 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
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 <cstdint> 8 #include <cstdint>
9 #include <list> 9 #include <list>
10 #include <memory> 10 #include <memory>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 return &session->connection()->sent_packet_manager(); 371 return &session->connection()->sent_packet_manager();
372 } 372 }
373 373
374 bool Initialize() { 374 bool Initialize() {
375 QuicTagVector copt; 375 QuicTagVector copt;
376 server_config_.SetConnectionOptionsToSend(copt); 376 server_config_.SetConnectionOptionsToSend(copt);
377 377
378 // TODO(nimia): Consider setting the congestion control algorithm for the 378 // TODO(nimia): Consider setting the congestion control algorithm for the
379 // client as well according to the test parameter. 379 // client as well according to the test parameter.
380 copt.push_back(GetParam().congestion_control_tag); 380 copt.push_back(GetParam().congestion_control_tag);
381 if (GetParam().congestion_control_tag == kQBIC &&
382 FLAGS_quic_fix_cubic_convex_mode) {
383 copt.push_back(kCCVX);
384 }
381 if (support_server_push_) { 385 if (support_server_push_) {
382 copt.push_back(kSPSH); 386 copt.push_back(kSPSH);
383 } 387 }
384 if (GetParam().client_supports_stateless_rejects) { 388 if (GetParam().client_supports_stateless_rejects) {
385 copt.push_back(kSREJ); 389 copt.push_back(kSREJ);
386 } 390 }
387 if (GetParam().disable_hpack_dynamic_table) { 391 if (GetParam().disable_hpack_dynamic_table) {
388 copt.push_back(kDHDT); 392 copt.push_back(kDHDT);
389 } 393 }
390 if (GetParam().force_hol_blocking) { 394 if (GetParam().force_hol_blocking) {
(...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2940 client_->WaitForResponse(); 2944 client_->WaitForResponse();
2941 EXPECT_EQ(kBarResponseBody, client_->response_body()); 2945 EXPECT_EQ(kBarResponseBody, client_->response_body());
2942 QuicConnectionStats client_stats = 2946 QuicConnectionStats client_stats =
2943 client_->client()->session()->connection()->GetStats(); 2947 client_->client()->session()->connection()->GetStats();
2944 EXPECT_EQ(0u, client_stats.packets_lost); 2948 EXPECT_EQ(0u, client_stats.packets_lost);
2945 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); 2949 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
2946 } 2950 }
2947 } // namespace 2951 } // namespace
2948 } // namespace test 2952 } // namespace test
2949 } // namespace net 2953 } // namespace net
OLDNEW
« net/quic/core/quic_flags_list.h ('K') | « net/quic/core/quic_flags_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698