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

Unified Diff: webrtc/api/dtmfsender.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 | « no previous file | webrtc/api/peerconnection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/dtmfsender.cc
diff --git a/webrtc/api/dtmfsender.cc b/webrtc/api/dtmfsender.cc
index bd4340e7a189d167dadb6bd0a793e1f7e8e2d7fa..8fda78430a40b242defd6b09cfb0df31281f32d1 100644
--- a/webrtc/api/dtmfsender.cc
+++ b/webrtc/api/dtmfsender.cc
@@ -14,6 +14,7 @@
#include <string>
+#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/thread.h"
@@ -164,7 +165,7 @@ void DtmfSender::OnMessage(rtc::Message* msg) {
break;
}
default: {
- ASSERT(false);
+ RTC_NOTREACHED();
break;
}
}
@@ -189,7 +190,7 @@ void DtmfSender::DoInsertDtmf() {
if (!GetDtmfCode(tone, &code)) {
// The find_first_of(kDtmfValidTones) should have guarantee |tone| is
// a valid DTMF tone.
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
« no previous file with comments | « no previous file | webrtc/api/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698