| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 request.AddHeader("content-length", "3"); | 464 request.AddHeader("content-length", "3"); |
| 465 request.set_skip_message_validation(true); | 465 request.set_skip_message_validation(true); |
| 466 | 466 |
| 467 // This should be detected as stream fin without complete request, | 467 // This should be detected as stream fin without complete request, |
| 468 // triggering an error response. | 468 // triggering an error response. |
| 469 client_->SendCustomSynchronousRequest(request); | 469 client_->SendCustomSynchronousRequest(request); |
| 470 EXPECT_EQ("bad", client_->response_body()); | 470 EXPECT_EQ("bad", client_->response_body()); |
| 471 EXPECT_EQ(500u, client_->response_headers()->parsed_response_code()); | 471 EXPECT_EQ(500u, client_->response_headers()->parsed_response_code()); |
| 472 } | 472 } |
| 473 | 473 |
| 474 TEST_P(EndToEndTest, LargePostNoPacketLoss) { | 474 // TODO(rtenneti): DISABLED_LargePostNoPacketLoss seems to be flaky. |
| 475 // http://crbug.com/297040. |
| 476 TEST_P(EndToEndTest, DISABLED_LargePostNoPacketLoss) { |
| 475 ASSERT_TRUE(Initialize()); | 477 ASSERT_TRUE(Initialize()); |
| 476 | 478 |
| 477 client_->client()->WaitForCryptoHandshakeConfirmed(); | 479 client_->client()->WaitForCryptoHandshakeConfirmed(); |
| 478 | 480 |
| 479 // 1 Mb body. | 481 // 1 Mb body. |
| 480 string body; | 482 string body; |
| 481 GenerateBody(&body, 1024 * 1024); | 483 GenerateBody(&body, 1024 * 1024); |
| 482 | 484 |
| 483 HTTPMessage request(HttpConstants::HTTP_1_1, | 485 HTTPMessage request(HttpConstants::HTTP_1_1, |
| 484 HttpConstants::POST, "/foo"); | 486 HttpConstants::POST, "/foo"); |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 QuicSession* session = dispatcher->session_map().begin()->second; | 996 QuicSession* session = dispatcher->session_map().begin()->second; |
| 995 EXPECT_EQ(kClientIFCW, | 997 EXPECT_EQ(kClientIFCW, |
| 996 session->config()->ReceivedInitialFlowControlWindowBytes()); | 998 session->config()->ReceivedInitialFlowControlWindowBytes()); |
| 997 server_thread_->Resume(); | 999 server_thread_->Resume(); |
| 998 } | 1000 } |
| 999 | 1001 |
| 1000 } // namespace | 1002 } // namespace |
| 1001 } // namespace test | 1003 } // namespace test |
| 1002 } // namespace tools | 1004 } // namespace tools |
| 1003 } // namespace net | 1005 } // namespace net |
| OLD | NEW |