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

Unified Diff: webrtc/base/network.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/nethelpers.cc ('k') | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/network.cc
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc
index ba056e4635d0be6de427a6203beb6eae3c590a86..a999fcb45c57cb008c9c4b64c9156af073088863 100644
--- a/webrtc/base/network.cc
+++ b/webrtc/base/network.cc
@@ -34,6 +34,7 @@
#include <algorithm>
#include <memory>
+#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/networkmonitor.h"
#include "webrtc/base/socket.h" // includes something that makes windows happy
@@ -407,7 +408,7 @@ void BasicNetworkManager::OnNetworksChanged() {
bool BasicNetworkManager::CreateNetworks(bool include_ignored,
NetworkList* networks) const {
- ASSERT(false);
+ RTC_NOTREACHED();
LOG(LS_WARNING) << "BasicNetworkManager doesn't work on NaCl yet";
return false;
}
@@ -785,7 +786,7 @@ void BasicNetworkManager::OnMessage(Message* msg) {
break;
}
default:
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
« no previous file with comments | « webrtc/base/nethelpers.cc ('k') | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698