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

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: sync and rework Created 5 years 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
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index 93fcf3d7bd053489980ab129072216a3893c9d96..82c33b6c0e8856364d7b48e2f78909c6d69cafcc 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1293,6 +1293,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;
@@ -1664,6 +1673,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;

Powered by Google App Engine
This is Rietveld 408576698