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

Unified Diff: webrtc/base/stream.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/socketpool.cc ('k') | webrtc/base/transformadapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/stream.cc
diff --git a/webrtc/base/stream.cc b/webrtc/base/stream.cc
index b9870db0c3fb025b2f4e6ea300bae2a19b7a9017..744cf083b94e10a1de2ca06c58009a76c91fcbb4 100644
--- a/webrtc/base/stream.cc
+++ b/webrtc/base/stream.cc
@@ -19,6 +19,7 @@
#include <string>
#include "webrtc/base/basictypes.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/messagequeue.h"
@@ -486,7 +487,7 @@ bool FileStream::Flush() {
return (0 == fflush(file_));
}
// try to flush empty file?
- ASSERT(false);
+ RTC_NOTREACHED();
return false;
}
@@ -495,7 +496,7 @@ bool FileStream::Flush() {
bool FileStream::TryLock() {
if (file_ == NULL) {
// Stream not open.
- ASSERT(false);
+ RTC_NOTREACHED();
return false;
}
@@ -505,7 +506,7 @@ bool FileStream::TryLock() {
bool FileStream::Unlock() {
if (file_ == NULL) {
// Stream not open.
- ASSERT(false);
+ RTC_NOTREACHED();
return false;
}
« no previous file with comments | « webrtc/base/socketpool.cc ('k') | webrtc/base/transformadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698