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 <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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 GenerateBody(&body, 10240); | 656 GenerateBody(&body, 10240); |
657 | 657 |
658 HTTPMessage request(HttpConstants::HTTP_1_1, | 658 HTTPMessage request(HttpConstants::HTTP_1_1, |
659 HttpConstants::POST, "/foo"); | 659 HttpConstants::POST, "/foo"); |
660 request.AddBody(body, true); | 660 request.AddBody(body, true); |
661 | 661 |
662 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request)); | 662 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request)); |
663 VerifyCleanConnection(true); | 663 VerifyCleanConnection(true); |
664 } | 664 } |
665 | 665 |
666 TEST_P(EndToEndTest, LargePostSmallBandwidthLargeBuffer) { | 666 // TODO(shess): This is flaky on ChromiumOS bots. |
| 667 // http://crbug.com/374871 |
| 668 TEST_P(EndToEndTest, DISABLED_LargePostSmallBandwidthLargeBuffer) { |
667 ASSERT_TRUE(Initialize()); | 669 ASSERT_TRUE(Initialize()); |
668 SetPacketSendDelay(QuicTime::Delta::FromMicroseconds(1)); | 670 SetPacketSendDelay(QuicTime::Delta::FromMicroseconds(1)); |
669 // 256KB per second with a 256KB buffer from server to client. Wireless | 671 // 256KB per second with a 256KB buffer from server to client. Wireless |
670 // clients commonly have larger buffers, but our max CWND is 200. | 672 // clients commonly have larger buffers, but our max CWND is 200. |
671 server_writer_->set_max_bandwidth_and_buffer_size( | 673 server_writer_->set_max_bandwidth_and_buffer_size( |
672 QuicBandwidth::FromBytesPerSecond(256 * 1024), 256 * 1024); | 674 QuicBandwidth::FromBytesPerSecond(256 * 1024), 256 * 1024); |
673 | 675 |
674 client_->client()->WaitForCryptoHandshakeConfirmed(); | 676 client_->client()->WaitForCryptoHandshakeConfirmed(); |
675 | 677 |
676 // 1 MB body. | 678 // 1 MB body. |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 QuicSession* session = dispatcher->session_map().begin()->second; | 1067 QuicSession* session = dispatcher->session_map().begin()->second; |
1066 EXPECT_EQ(kClientIFCW, | 1068 EXPECT_EQ(kClientIFCW, |
1067 session->config()->ReceivedInitialFlowControlWindowBytes()); | 1069 session->config()->ReceivedInitialFlowControlWindowBytes()); |
1068 server_thread_->Resume(); | 1070 server_thread_->Resume(); |
1069 } | 1071 } |
1070 | 1072 |
1071 } // namespace | 1073 } // namespace |
1072 } // namespace test | 1074 } // namespace test |
1073 } // namespace tools | 1075 } // namespace tools |
1074 } // namespace net | 1076 } // namespace net |
OLD | NEW |