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

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

Issue 1752823002: n/a (QUIC toy client/server changes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115400573
Patch Set: Revert to Patch Set 1 Created 4 years, 9 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 test { 10 namespace test {
11 11
12 // static 12 // static
13 bool QuicClientPeer::CreateUDPSocket(QuicClient* client) { 13 bool QuicClientPeer::CreateUDPSocketAndBind(QuicClient* client) {
14 return client->CreateUDPSocket(); 14 return client->CreateUDPSocketAndBind();
15 } 15 }
16 16
17 // static 17 // static
18 void QuicClientPeer::CleanUpUDPSocket(QuicClient* client, int fd) { 18 void QuicClientPeer::CleanUpUDPSocket(QuicClient* client, int fd) {
19 client->CleanUpUDPSocket(fd); 19 client->CleanUpUDPSocket(fd);
20 } 20 }
21 21
22 // static 22 // static
23 void QuicClientPeer::SetClientPort(QuicClient* client, int port) { 23 void QuicClientPeer::SetClientPort(QuicClient* client, int port) {
24 client->fd_address_map_.back().second = 24 client->fd_address_map_.back().second =
25 IPEndPoint(client->GetLatestClientAddress().address(), port); 25 IPEndPoint(client->GetLatestClientAddress().address(), port);
26 } 26 }
27 27
28 } // namespace test 28 } // namespace test
29 } // namespace net 29 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_client_peer.h ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698