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

Side by Side Diff: net/tools/quic/test_tools/quic_client_peer.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback eroman 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "net/tools/quic/test_tools/quic_client_peer.h" 5 #include "net/tools/quic/test_tools/quic_client_peer.h"
6 6
7 #include "net/tools/quic/quic_client.h" 7 #include "net/tools/quic/quic_client.h"
8 8
9 namespace net { 9 namespace net {
10 namespace tools { 10 namespace tools {
11 namespace test { 11 namespace test {
12 12
13 // static 13 // static
14 bool QuicClientPeer::CreateUDPSocket(QuicClient* client) { 14 bool QuicClientPeer::CreateUDPSocket(QuicClient* client) {
15 return client->CreateUDPSocket(); 15 return client->CreateUDPSocket();
16 } 16 }
17 17
18 // static 18 // static
19 void QuicClientPeer::SetClientPort(QuicClient* client, int port) { 19 void QuicClientPeer::SetClientPort(QuicClient* client, int port) {
20 client->client_address_ = IPEndPoint(client->client_address_.address(), port); 20 client->client_address_ =
21 IPEndPoint(client->client_address_.address().bytes(), port);
21 } 22 }
22 23
23 } // namespace test 24 } // namespace test
24 } // namespace tools 25 } // namespace tools
25 } // namespace net 26 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698