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

Unified Diff: net/socket/socket_test_util.cc

Issue 914853002: Add CHECK() in UdpSocketLibevent to debug crbug.com/452121 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_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 791c9f684804dd7fd74ac8adee3b2a5e7d8cc164..1ec40afc5589053fcbc11cf74bdc1682097df0ec 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1202,8 +1202,9 @@ int DeterministicMockUDPClientSocket::SetSendBufferSize(int32 size) {
return OK;
}
-void DeterministicMockUDPClientSocket::Close() {
+int DeterministicMockUDPClientSocket::Close() {
connected_ = false;
+ return OK;
}
int DeterministicMockUDPClientSocket::GetPeerAddress(
@@ -1615,8 +1616,9 @@ int MockUDPClientSocket::SetSendBufferSize(int32 size) {
return OK;
}
-void MockUDPClientSocket::Close() {
+int MockUDPClientSocket::Close() {
connected_ = false;
+ return OK;
}
int MockUDPClientSocket::GetPeerAddress(IPEndPoint* address) const {
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/udp/datagram_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698