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

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

Issue 112953003: Remove a QUIC test only flag(limit_rto_increase_for_tests) to limit the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 : server_hostname_("example.com"), 151 : server_hostname_("example.com"),
152 server_started_(false), 152 server_started_(false),
153 strike_register_no_startup_period_(false) { 153 strike_register_no_startup_period_(false) {
154 net::IPAddressNumber ip; 154 net::IPAddressNumber ip;
155 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); 155 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip));
156 server_address_ = IPEndPoint(ip, 0); 156 server_address_ = IPEndPoint(ip, 0);
157 157
158 client_supported_versions_ = GetParam().client_supported_versions; 158 client_supported_versions_ = GetParam().client_supported_versions;
159 server_supported_versions_ = GetParam().server_supported_versions; 159 server_supported_versions_ = GetParam().server_supported_versions;
160 negotiated_version_ = GetParam().negotiated_version; 160 negotiated_version_ = GetParam().negotiated_version;
161 FLAGS_limit_rto_increase_for_tests = true;
162 FLAGS_enable_quic_pacing = GetParam().use_pacing; 161 FLAGS_enable_quic_pacing = GetParam().use_pacing;
163 LOG(INFO) << "Using Configuration: " << GetParam(); 162 LOG(INFO) << "Using Configuration: " << GetParam();
164 163
165 client_config_.SetDefaults(); 164 client_config_.SetDefaults();
166 server_config_.SetDefaults(); 165 server_config_.SetDefaults();
167 server_config_.set_initial_round_trip_time_us(kMaxInitialRoundTripTimeUs, 166 server_config_.set_initial_round_trip_time_us(kMaxInitialRoundTripTimeUs,
168 0); 167 0);
169 168
170 QuicInMemoryCachePeer::ResetForTests(); 169 QuicInMemoryCachePeer::ResetForTests();
171 AddToCache("GET", "https://www.google.com/foo", 170 AddToCache("GET", "https://www.google.com/foo",
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 client_->SendSynchronousRequest("/bar"); 819 client_->SendSynchronousRequest("/bar");
821 820
822 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); 821 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error());
823 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error()); 822 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error());
824 } 823 }
825 824
826 } // namespace 825 } // namespace
827 } // namespace test 826 } // namespace test
828 } // namespace tools 827 } // namespace tools
829 } // namespace net 828 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698