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

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

Issue 157803007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_x64 compiler error fix Created 6 years, 10 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 | Annotate | Revision Log
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 string body; 444 string body;
445 GenerateBody(&body, 1024 * 1024); 445 GenerateBody(&body, 1024 * 1024);
446 446
447 HTTPMessage request(HttpConstants::HTTP_1_1, 447 HTTPMessage request(HttpConstants::HTTP_1_1,
448 HttpConstants::POST, "/foo"); 448 HttpConstants::POST, "/foo");
449 request.AddBody(body, true); 449 request.AddBody(body, true);
450 450
451 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request)); 451 EXPECT_EQ(kFooResponseBody, client_->SendCustomSynchronousRequest(request));
452 QuicConnectionStats stats = 452 QuicConnectionStats stats =
453 client_->client()->session()->connection()->GetStats(); 453 client_->client()->session()->connection()->GetStats();
454 // TODO(rtenneti): Enable packets_lost check after bug(12887145) is fixed. 454 // TODO(ianswett): Restore the packets_lost expectation when fixing b/12887145
455 // EXPECT_EQ(0u, stats.packets_lost); 455 // EXPECT_EQ(0u, stats.packets_lost);
456 // EXPECT_EQ(0u, stats.rto_count); 456 EXPECT_EQ(0u, stats.rto_count);
457 } 457 }
458 458
459 TEST_P(EndToEndTest, LargePostNoPacketLoss1sRTT) { 459 TEST_P(EndToEndTest, LargePostNoPacketLoss1sRTT) {
460 ASSERT_TRUE(Initialize()); 460 ASSERT_TRUE(Initialize());
461 SetPacketSendDelay(QuicTime::Delta::FromMilliseconds(1000)); 461 SetPacketSendDelay(QuicTime::Delta::FromMilliseconds(1000));
462 462
463 client_->client()->WaitForCryptoHandshakeConfirmed(); 463 client_->client()->WaitForCryptoHandshakeConfirmed();
464 464
465 // 1 Mb body. 465 // 1 Mb body.
466 string body; 466 string body;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 client_->SendSynchronousRequest("/bar"); 892 client_->SendSynchronousRequest("/bar");
893 893
894 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); 894 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error());
895 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error()); 895 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error());
896 } 896 }
897 897
898 } // namespace 898 } // namespace
899 } // namespace test 899 } // namespace test
900 } // namespace tools 900 } // namespace tools
901 } // namespace net 901 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698