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

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

Issue 97433002: Change the defaults QuicConfig::server_initial_congestion_window to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 673
674 ASSERT_TRUE(Initialize()); 674 ASSERT_TRUE(Initialize());
675 client_->client()->WaitForCryptoHandshakeConfirmed(); 675 client_->client()->WaitForCryptoHandshakeConfirmed();
676 QuicConfig* client_negotiated_config = client_->client()->session()->config(); 676 QuicConfig* client_negotiated_config = client_->client()->session()->config();
677 EXPECT_EQ(2u, client_negotiated_config->max_streams_per_connection()); 677 EXPECT_EQ(2u, client_negotiated_config->max_streams_per_connection());
678 } 678 }
679 679
680 // TODO(rtenneti): DISABLED_LimitCongestionWindowAndRTT seems to be flaky. 680 // TODO(rtenneti): DISABLED_LimitCongestionWindowAndRTT seems to be flaky.
681 // http://crbug.com/321870. 681 // http://crbug.com/321870.
682 TEST_P(EndToEndTest, DISABLED_LimitCongestionWindowAndRTT) { 682 TEST_P(EndToEndTest, DISABLED_LimitCongestionWindowAndRTT) {
683 server_config_.set_server_initial_congestion_window(kMaxInitialWindow,
684 kDefaultInitialWindow);
683 // Client tries to negotiate twice the server's max and negotiation settles 685 // Client tries to negotiate twice the server's max and negotiation settles
684 // on the max. 686 // on the max.
685 client_config_.set_server_initial_congestion_window(2 * kMaxInitialWindow, 687 client_config_.set_server_initial_congestion_window(2 * kMaxInitialWindow,
686 kDefaultInitialWindow); 688 kDefaultInitialWindow);
687 client_config_.set_initial_round_trip_time_us(1, 1); 689 client_config_.set_initial_round_trip_time_us(1, 1);
688 690
689 ASSERT_TRUE(Initialize()); 691 ASSERT_TRUE(Initialize());
690 client_->client()->WaitForCryptoHandshakeConfirmed(); 692 client_->client()->WaitForCryptoHandshakeConfirmed();
691 server_thread_->WaitForCryptoHandshakeConfirmed(); 693 server_thread_->WaitForCryptoHandshakeConfirmed();
692 694
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 client_->SendSynchronousRequest("/bar"); 846 client_->SendSynchronousRequest("/bar");
845 847
846 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); 848 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error());
847 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error()); 849 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error());
848 } 850 }
849 851
850 } // namespace 852 } // namespace
851 } // namespace test 853 } // namespace test
852 } // namespace tools 854 } // namespace tools
853 } // namespace net 855 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698