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

Side by Side Diff: net/quic/quic_end_to_end_unittest.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <utility> 5 #include <utility>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 kInitialStreamFlowControlWindowForTest); 156 kInitialStreamFlowControlWindowForTest);
157 server_config_.SetInitialSessionFlowControlWindowToSend( 157 server_config_.SetInitialSessionFlowControlWindowToSend(
158 kInitialSessionFlowControlWindowForTest); 158 kInitialSessionFlowControlWindowForTest);
159 QuicServer* server = 159 QuicServer* server =
160 new QuicServer(CryptoTestUtils::ProofSourceForTesting(), server_config_, 160 new QuicServer(CryptoTestUtils::ProofSourceForTesting(), server_config_,
161 QuicSupportedVersions()); 161 QuicSupportedVersions());
162 server_thread_.reset(new ServerThread(server, server_address_, 162 server_thread_.reset(new ServerThread(server, server_address_,
163 strike_register_no_startup_period_)); 163 strike_register_no_startup_period_));
164 server_thread_->Initialize(); 164 server_thread_->Initialize();
165 server_address_ = 165 server_address_ =
166 IPEndPoint(server_address_.address(), server_thread_->GetPort()); 166 IPEndPoint(server_address_.address_number(), server_thread_->GetPort());
167 server_thread_->Start(); 167 server_thread_->Start();
168 server_started_ = true; 168 server_started_ = true;
169 } 169 }
170 170
171 // Stops the QUIC server. 171 // Stops the QUIC server.
172 void StopServer() { 172 void StopServer() {
173 if (!server_started_) { 173 if (!server_started_) {
174 return; 174 return;
175 } 175 }
176 if (server_thread_.get()) { 176 if (server_thread_.get()) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 base::MessageLoop::current()->Run(); 328 base::MessageLoop::current()->Run();
329 329
330 for (size_t i = 0; i < num_requests; ++i) { 330 for (size_t i = 0; i < num_requests; ++i) {
331 CheckResponse(*consumers[i], "HTTP/1.1 200", kResponseBody); 331 CheckResponse(*consumers[i], "HTTP/1.1 200", kResponseBody);
332 } 332 }
333 STLDeleteElements(&consumers); 333 STLDeleteElements(&consumers);
334 } 334 }
335 335
336 } // namespace test 336 } // namespace test
337 } // namespace net 337 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698