| Index: net/tools/quic/end_to_end_test.cc
|
| diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
|
| index 8f8c8e1d549f92bd97dd5ed86349fb5a18537a32..aa62b4a87bdf7400c7ebb0bc675dc225647bcd1f 100644
|
| --- a/net/tools/quic/end_to_end_test.cc
|
| +++ b/net/tools/quic/end_to_end_test.cc
|
| @@ -457,8 +457,7 @@ TEST_P(EndToEndTest, DISABLED_SimpleRequestResponsev6) {
|
| TEST_P(EndToEndTest, SeparateFinPacket) {
|
| ASSERT_TRUE(Initialize());
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.set_has_complete_message(false);
|
|
|
| // Send a request in two parts: the request and then an empty packet with FIN.
|
| @@ -490,8 +489,7 @@ TEST_P(EndToEndTest, MultipleClients) {
|
| ASSERT_TRUE(Initialize());
|
| scoped_ptr<QuicTestClient> client2(CreateQuicClient(nullptr));
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddHeader("content-length", "3");
|
| request.set_has_complete_message(false);
|
|
|
| @@ -537,8 +535,7 @@ TEST_P(EndToEndTest, PostMissingBytes) {
|
| ASSERT_TRUE(Initialize());
|
|
|
| // Add a content length header with no body.
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddHeader("content-length", "3");
|
| request.set_skip_message_validation(true);
|
|
|
| @@ -560,8 +557,7 @@ TEST_P(EndToEndTest, DISABLED_LargePostNoPacketLoss) {
|
| string body;
|
| GenerateBody(&body, 1024 * 1024);
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddBody(body, true);
|
|
|
| EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
|
| @@ -578,8 +574,7 @@ TEST_P(EndToEndTest, LargePostNoPacketLoss1sRTT) {
|
| string body;
|
| GenerateBody(&body, 100 * 1024);
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddBody(body, true);
|
|
|
| EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
|
| @@ -600,8 +595,7 @@ TEST_P(EndToEndTest, LargePostWithPacketLoss) {
|
| string body;
|
| GenerateBody(&body, 1024 * 10);
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddBody(body, true);
|
|
|
| EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
|
| @@ -623,8 +617,7 @@ TEST_P(EndToEndTest, LargePostWithPacketLossAndBlockedSocket) {
|
| string body;
|
| GenerateBody(&body, 1024 * 10);
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddBody(body, true);
|
|
|
| EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
|
| @@ -642,8 +635,7 @@ TEST_P(EndToEndTest, LargePostNoPacketLossWithDelayAndReordering) {
|
| string body;
|
| GenerateBody(&body, 1024 * 1024);
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddBody(body, true);
|
|
|
| EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
|
| @@ -799,8 +791,7 @@ TEST_P(EndToEndTest, InvalidStream) {
|
| TEST_P(EndToEndTest, DISABLED_MultipleTermination) {
|
| ASSERT_TRUE(Initialize());
|
|
|
| - HTTPMessage request(HttpConstants::HTTP_1_1,
|
| - HttpConstants::POST, "/foo");
|
| + HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
|
| request.AddHeader("content-length", "3");
|
| request.set_has_complete_message(false);
|
|
|
|
|