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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/tools/quic/test_tools/quic_client_peer.h"
6
7 #include "net/tools/quic/quic_client.h"
8
9 namespace net {
10 namespace tools {
11 namespace test {
12
13 // static
14 QuicCryptoClientConfig* QuicClientPeer::GetCryptoConfig(QuicClient* client) {
15 return &client->crypto_config_;
16 }
17
18 // static
19 bool QuicClientPeer::CreateUDPSocket(QuicClient* client) {
20 return client->CreateUDPSocket();
21 }
22
23 // static
24 void QuicClientPeer::SetClientPort(QuicClient* client, int port) {
25 client->client_address_ = IPEndPoint(client->client_address_.address(), port);
26 }
27
28 // static
29 void QuicClientPeer::SetWriter(QuicClient* client, QuicPacketWriter* writer) {
30 client->writer_.reset(writer);
31 }
32
33 } // namespace test
34 } // namespace tools
35 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_client_peer.h ('k') | net/tools/quic/test_tools/quic_dispatcher_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698