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

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: 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/dns/address_sorter_posix_unittest.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_test_util.h
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 92089b1df1d583d3bee1838abd37e81550fec210..33cc8baba24555f581a72d49a808540d63eb43b9 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.
« no previous file with comments | « net/dns/address_sorter_posix_unittest.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698