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

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

Issue 511003002: Don't let PRR kick in if there is less than a packets worth of bytes in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/congestion_control/tcp_cubic_sender.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 <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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 string body; 665 string body;
666 GenerateBody(&body, 1024 * 1024); 666 GenerateBody(&body, 1024 * 1024);
667 667
668 HTTPMessage request(HttpConstants::HTTP_1_1, 668 HTTPMessage request(HttpConstants::HTTP_1_1,
669 HttpConstants::POST, "/foo"); 669 HttpConstants::POST, "/foo");
670 request.AddBody(body, true); 670 request.AddBody(body, true);
671 671
672 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request)); 672 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
673 } 673 }
674 674
675 // TODO(rtenneti): This is flaky on ChromiumOS bots. 675 TEST_P(EndToEndTest, LargePostZeroRTTFailure) {
676 // http://crbug.com/407756
677 TEST_P(EndToEndTest, DISABLED_LargePostZeroRTTFailure) {
678 // Have the server accept 0-RTT without waiting a startup period. 676 // Have the server accept 0-RTT without waiting a startup period.
679 strike_register_no_startup_period_ = true; 677 strike_register_no_startup_period_ = true;
680 678
681 // Send a request and then disconnect. This prepares the client to attempt 679 // Send a request and then disconnect. This prepares the client to attempt
682 // a 0-RTT handshake for the next request. 680 // a 0-RTT handshake for the next request.
683 ASSERT_TRUE(Initialize()); 681 ASSERT_TRUE(Initialize());
684 682
685 string body; 683 string body;
686 GenerateBody(&body, 20480); 684 GenerateBody(&body, 20480);
687 685
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 QuicSession* session = dispatcher->session_map().begin()->second; 1388 QuicSession* session = dispatcher->session_map().begin()->second;
1391 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( 1389 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(
1392 session).size()); 1390 session).size());
1393 server_thread_->Resume(); 1391 server_thread_->Resume();
1394 } 1392 }
1395 1393
1396 } // namespace 1394 } // namespace
1397 } // namespace test 1395 } // namespace test
1398 } // namespace tools 1396 } // namespace tools
1399 } // namespace net 1397 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698