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

Unified Diff: webrtc/base/win32socketserver.cc

Issue 2625003003: Replace ASSERT(false) by RTC_NOTREACHED(). (Closed)
Patch Set: Created 3 years, 11 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 | « webrtc/base/win32filesystem.cc ('k') | webrtc/examples/peerconnection/client/conductor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/win32socketserver.cc
diff --git a/webrtc/base/win32socketserver.cc b/webrtc/base/win32socketserver.cc
index ab25312df0e7925c3418471f716be8dc15b5a529..342cc3f0e5446f260146498b3418210bcf8a2e3f 100644
--- a/webrtc/base/win32socketserver.cc
+++ b/webrtc/base/win32socketserver.cc
@@ -14,6 +14,7 @@
#include <ws2tcpip.h> // NOLINT
#include "webrtc/base/byteorder.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/win32window.h"
@@ -547,7 +548,7 @@ int Win32Socket::EstimateMTU(uint16_t* mtu) {
}
}
- ASSERT(false);
+ RTC_NOTREACHED();
return 0;
}
@@ -618,7 +619,7 @@ int Win32Socket::TranslateOption(Option opt, int* slevel, int* sopt) {
LOG(LS_WARNING) << "Socket::OPT_DSCP not supported.";
return -1;
default:
- ASSERT(false);
+ RTC_NOTREACHED();
return -1;
}
return 0;
« no previous file with comments | « webrtc/base/win32filesystem.cc ('k') | webrtc/examples/peerconnection/client/conductor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698