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

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

Issue 648933003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with TOT Created 6 years, 2 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
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_client.cc » ('j') | 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 <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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); 191 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip));
192 server_address_ = IPEndPoint(ip, 0); 192 server_address_ = IPEndPoint(ip, 0);
193 193
194 client_supported_versions_ = GetParam().client_supported_versions; 194 client_supported_versions_ = GetParam().client_supported_versions;
195 server_supported_versions_ = GetParam().server_supported_versions; 195 server_supported_versions_ = GetParam().server_supported_versions;
196 negotiated_version_ = GetParam().negotiated_version; 196 negotiated_version_ = GetParam().negotiated_version;
197 FLAGS_enable_quic_fec = GetParam().use_fec; 197 FLAGS_enable_quic_fec = GetParam().use_fec;
198 198
199 VLOG(1) << "Using Configuration: " << GetParam(); 199 VLOG(1) << "Using Configuration: " << GetParam();
200 200
201 client_config_.SetDefaults();
202 server_config_.SetDefaults();
203
204 // Use different flow control windows for client/server. 201 // Use different flow control windows for client/server.
205 client_config_.SetInitialFlowControlWindowToSend( 202 client_config_.SetInitialFlowControlWindowToSend(
206 2 * kInitialSessionFlowControlWindowForTest); 203 2 * kInitialSessionFlowControlWindowForTest);
207 client_config_.SetInitialStreamFlowControlWindowToSend( 204 client_config_.SetInitialStreamFlowControlWindowToSend(
208 2 * kInitialStreamFlowControlWindowForTest); 205 2 * kInitialStreamFlowControlWindowForTest);
209 client_config_.SetInitialSessionFlowControlWindowToSend( 206 client_config_.SetInitialSessionFlowControlWindowToSend(
210 2 * kInitialSessionFlowControlWindowForTest); 207 2 * kInitialSessionFlowControlWindowForTest);
211 server_config_.SetInitialFlowControlWindowToSend( 208 server_config_.SetInitialFlowControlWindowToSend(
212 3 * kInitialSessionFlowControlWindowForTest); 209 3 * kInitialSessionFlowControlWindowForTest);
213 server_config_.SetInitialStreamFlowControlWindowToSend( 210 server_config_.SetInitialStreamFlowControlWindowToSend(
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 QuicSession* session = dispatcher->session_map().begin()->second; 1360 QuicSession* session = dispatcher->session_map().begin()->second;
1364 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( 1361 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(
1365 session).size()); 1362 session).size());
1366 server_thread_->Resume(); 1363 server_thread_->Resume();
1367 } 1364 }
1368 1365
1369 } // namespace 1366 } // namespace
1370 } // namespace test 1367 } // namespace test
1371 } // namespace tools 1368 } // namespace tools
1372 } // namespace net 1369 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698