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

Unified Diff: webrtc/video/rtc_event_log.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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/video/replay.cc ('k') | webrtc/video/rtc_event_log_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/rtc_event_log.cc
diff --git a/webrtc/video/rtc_event_log.cc b/webrtc/video/rtc_event_log.cc
index eb4340d0b9f520e11a118fcb0ee98c0638e26def..7086b3ed8f258c9bf7581f311427fe84267c6d12 100644
--- a/webrtc/video/rtc_event_log.cc
+++ b/webrtc/video/rtc_event_log.cc
@@ -352,11 +352,11 @@ void RtcEventLogImpl::StopLoggingLocked() {
auto debug_event = event.mutable_debug_event();
debug_event->set_type(ConvertDebugEvent(DebugEvent::kLogEnd));
// Store the event and close the file
- DCHECK(file_->Open());
+ RTC_DCHECK(file_->Open());
StoreToFile(&event);
file_->CloseFile();
}
- DCHECK(!file_->Open());
+ RTC_DCHECK(!file_->Open());
stream_.Clear();
}
@@ -376,7 +376,7 @@ void RtcEventLogImpl::StoreToFile(rtclog::Event* event) {
if (stream_.stream_size() < 1) {
stream_.add_stream();
}
- DCHECK_EQ(stream_.stream_size(), 1);
+ RTC_DCHECK_EQ(stream_.stream_size(), 1);
stream_.mutable_stream(0)->Swap(event);
// TODO(terelius): Doesn't this create a new EventStream per event?
// Is this guaranteed to work e.g. in future versions of protobuf?
« no previous file with comments | « webrtc/video/replay.cc ('k') | webrtc/video/rtc_event_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698