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

Unified Diff: net/tools/quic/test_tools/quic_client_peer.cc

Issue 279453004: Allows QUIC connections to remain established even though the peer's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« net/quic/quic_flags.cc ('K') | « net/tools/quic/test_tools/quic_client_peer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_client_peer.cc
diff --git a/net/tools/quic/test_tools/quic_client_peer.cc b/net/tools/quic/test_tools/quic_client_peer.cc
index 9cd9b3735272cc8b0a957f5e8b40469e27288c7a..89f1c82650c6bf450f3cbd76a884b5f5efc9abe0 100644
--- a/net/tools/quic/test_tools/quic_client_peer.cc
+++ b/net/tools/quic/test_tools/quic_client_peer.cc
@@ -15,6 +15,16 @@ QuicCryptoClientConfig* QuicClientPeer::GetCryptoConfig(QuicClient* client) {
return &client->crypto_config_;
}
+// static
+bool QuicClientPeer::CreateUDPSocket(QuicClient* client) {
+ return client->CreateUDPSocket();
+}
+
+// static
+void QuicClientPeer::SetClientPort(QuicClient* client, int port) {
+ client->client_address_ = IPEndPoint(client->client_address_.address(), port);
+}
+
} // namespace test
} // namespace tools
} // namespace net
« net/quic/quic_flags.cc ('K') | « net/tools/quic/test_tools/quic_client_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698