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

Unified Diff: net/socket/socket_test_util.cc

Issue 1416213003: Add DatagramClientSocket::BindToDefaultNetwork(),GetBoundNetwork() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/udp/datagram_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index ddb4c6d47ab2f6f441592b3d43665f27e34d05aa..e4f72db8058ddf9751dbfa3bc373f95a0bd37b97 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1295,6 +1295,15 @@ int DeterministicMockUDPClientSocket::BindToNetwork(
return ERR_NOT_IMPLEMENTED;
}
+int DeterministicMockUDPClientSocket::BindToDefaultNetwork() {
+ return ERR_NOT_IMPLEMENTED;
+}
+
+NetworkChangeNotifier::NetworkHandle
+DeterministicMockUDPClientSocket::GetBoundNetwork() {
+ return NetworkChangeNotifier::kInvalidNetworkHandle;
+}
+
int DeterministicMockUDPClientSocket::Connect(const IPEndPoint& address) {
if (connected_)
return OK;
@@ -1666,6 +1675,14 @@ int MockUDPClientSocket::BindToNetwork(
return ERR_NOT_IMPLEMENTED;
}
+int MockUDPClientSocket::BindToDefaultNetwork() {
+ return ERR_NOT_IMPLEMENTED;
+}
+
+NetworkChangeNotifier::NetworkHandle MockUDPClientSocket::GetBoundNetwork() {
+ return NetworkChangeNotifier::kInvalidNetworkHandle;
+}
+
int MockUDPClientSocket::Connect(const IPEndPoint& address) {
connected_ = true;
peer_addr_ = address;
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/udp/datagram_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698