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

Unified Diff: webrtc/api/rtpsender.cc

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Also replace NDEBUG checks in taskrunner.h. 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
Index: webrtc/api/rtpsender.cc
diff --git a/webrtc/api/rtpsender.cc b/webrtc/api/rtpsender.cc
index 61f53b4d801ef187ee36ca03bec97048acb87ac3..02de5689eb596ca9ce824fd6f2eb36d94d778d4a 100644
--- a/webrtc/api/rtpsender.cc
+++ b/webrtc/api/rtpsender.cc
@@ -12,6 +12,7 @@
#include "webrtc/api/localaudiosource.h"
#include "webrtc/api/mediastreaminterface.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/helpers.h"
#include "webrtc/base/trace_event.h"
@@ -39,7 +40,7 @@ void LocalAudioSinkAdapter::OnData(const void* audio_data,
void LocalAudioSinkAdapter::SetSink(cricket::AudioSource::Sink* sink) {
rtc::CritScope lock(&lock_);
- ASSERT(!sink || !sink_);
+ RTC_DCHECK(!sink || !sink_);
sink_ = sink;
}

Powered by Google App Engine
This is Rietveld 408576698