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

Unified Diff: net/socket/socket_test_util.h

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.h
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 430b5225331c4eaaefdf1cbe413c411d0b44268c..251083d6e9e05ccb05c16900eeede84c79a8adee 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -825,6 +825,8 @@ class DeterministicMockUDPClientSocket
// DatagramClientSocket implementation.
int BindToNetwork(NetworkChangeNotifier::NetworkHandle network) override;
+ int BindToDefaultNetwork() override;
+ NetworkChangeNotifier::NetworkHandle GetBoundNetwork() override;
int Connect(const IPEndPoint& address) override;
void set_source_port(uint16 port) { source_port_ = port; }
@@ -948,6 +950,8 @@ class MockUDPClientSocket : public DatagramClientSocket, public AsyncSocket {
// DatagramClientSocket implementation.
int BindToNetwork(NetworkChangeNotifier::NetworkHandle network) override;
+ int BindToDefaultNetwork() override;
+ NetworkChangeNotifier::NetworkHandle GetBoundNetwork() override;
int Connect(const IPEndPoint& address) override;
// AsyncSocket implementation.

Powered by Google App Engine
This is Rietveld 408576698