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

Unified Diff: webrtc/base/httpserver.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/httpclient.cc ('k') | webrtc/base/nethelpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/httpserver.cc
diff --git a/webrtc/base/httpserver.cc b/webrtc/base/httpserver.cc
index 1d3fcc60a51bb25d713b834e897ff8f433557b05..fee7a2c4c61779fda9509eefd214b34c3cb502cf 100644
--- a/webrtc/base/httpserver.cc
+++ b/webrtc/base/httpserver.cc
@@ -13,6 +13,7 @@
#include "webrtc/base/httpcommon-inl.h"
#include "webrtc/base/asyncsocket.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/httpserver.h"
#include "webrtc/base/logging.h"
@@ -100,7 +101,7 @@ void
HttpServer::Remove(int connection_id) {
ConnectionMap::iterator it = connections_.find(connection_id);
if (it == connections_.end()) {
- ASSERT(false);
+ RTC_NOTREACHED();
return;
}
Connection* connection = it->second;
@@ -216,7 +217,7 @@ HttpServer::Connection::onHttpComplete(HttpMode mode, HttpError err) {
current_->response.clear(true);
base_.recv(&current_->request);
} else {
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
« no previous file with comments | « webrtc/base/httpclient.cc ('k') | webrtc/base/nethelpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698