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

Unified Diff: webrtc/pc/mediamonitor.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/pc/channelmanager.cc ('k') | webrtc/pc/mediasession.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/mediamonitor.cc
diff --git a/webrtc/pc/mediamonitor.cc b/webrtc/pc/mediamonitor.cc
index 5ed68fa085e2f40e22b21206c5343388dc79fb58..c98522730e8494741ae16c89345745b13cb179f7 100644
--- a/webrtc/pc/mediamonitor.cc
+++ b/webrtc/pc/mediamonitor.cc
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/pc/channelmanager.h"
#include "webrtc/pc/mediamonitor.h"
@@ -50,7 +51,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
switch (message->message_id) {
case MSG_MONITOR_START:
- ASSERT(rtc::Thread::Current() == worker_thread_);
+ RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
if (!monitoring_) {
monitoring_ = true;
PollMediaChannel();
@@ -58,7 +59,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
break;
case MSG_MONITOR_STOP:
- ASSERT(rtc::Thread::Current() == worker_thread_);
+ RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
if (monitoring_) {
monitoring_ = false;
worker_thread_->Clear(this);
@@ -66,12 +67,12 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
break;
case MSG_MONITOR_POLL:
- ASSERT(rtc::Thread::Current() == worker_thread_);
+ RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
PollMediaChannel();
break;
case MSG_MONITOR_SIGNAL:
- ASSERT(rtc::Thread::Current() == monitor_thread_);
+ RTC_DCHECK(rtc::Thread::Current() == monitor_thread_);
Update();
break;
}
@@ -79,7 +80,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
void MediaMonitor::PollMediaChannel() {
rtc::CritScope cs(&crit_);
- ASSERT(rtc::Thread::Current() == worker_thread_);
+ RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
GetStats();
« no previous file with comments | « webrtc/pc/channelmanager.cc ('k') | webrtc/pc/mediasession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698