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

Unified Diff: webrtc/base/transformadapter.cc

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Address final nits. 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/thread.cc ('k') | webrtc/base/unixfilesystem.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/transformadapter.cc
diff --git a/webrtc/base/transformadapter.cc b/webrtc/base/transformadapter.cc
index 798a3c39068b268ccb16bcd2a0ece0256f95bda6..f140dab33416772f9e1e8ed5c608345e00111a9b 100644
--- a/webrtc/base/transformadapter.cc
+++ b/webrtc/base/transformadapter.cc
@@ -67,7 +67,7 @@ TransformAdapter::Read(void * buffer, size_t buffer_len,
StreamResult result = transform_->Transform(buffer_, &in_len,
buffer, &out_len,
(state_ == ST_FLUSHING));
- ASSERT(result != SR_BLOCK);
+ RTC_DCHECK(result != SR_BLOCK);
if (result == SR_EOS) {
// Note: Don't signal SR_EOS this iteration, unless out_len is zero
state_ = ST_COMPLETE;
@@ -118,7 +118,7 @@ TransformAdapter::Write(const void * data, size_t data_len,
buffer_ + len_, &out_len,
(state_ == ST_FLUSHING));
- ASSERT(result != SR_BLOCK);
+ RTC_DCHECK(result != SR_BLOCK);
if (result == SR_EOS) {
// Note: Don't signal SR_EOS this iteration, unless no data written
state_ = ST_COMPLETE;
« no previous file with comments | « webrtc/base/thread.cc ('k') | webrtc/base/unixfilesystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698