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

Unified Diff: webrtc/video/audio_receive_stream.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/tools/agc/agc_harness.cc ('k') | webrtc/video/bitrate_estimator_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/audio_receive_stream.cc
diff --git a/webrtc/video/audio_receive_stream.cc b/webrtc/video/audio_receive_stream.cc
index 9b400021dbe0689237be60544af804f567d2eb38..b8da1bb6c35da0bd984b9c0a74f6f7b04180bbc4 100644
--- a/webrtc/video/audio_receive_stream.cc
+++ b/webrtc/video/audio_receive_stream.cc
@@ -48,21 +48,21 @@ AudioReceiveStream::AudioReceiveStream(
: remote_bitrate_estimator_(remote_bitrate_estimator),
config_(config),
rtp_header_parser_(RtpHeaderParser::Create()) {
- DCHECK(config.voe_channel_id != -1);
- DCHECK(remote_bitrate_estimator_ != nullptr);
- DCHECK(rtp_header_parser_ != nullptr);
+ RTC_DCHECK(config.voe_channel_id != -1);
+ RTC_DCHECK(remote_bitrate_estimator_ != nullptr);
+ RTC_DCHECK(rtp_header_parser_ != nullptr);
for (const auto& ext : config.rtp.extensions) {
// One-byte-extension local identifiers are in the range 1-14 inclusive.
- DCHECK_GE(ext.id, 1);
- DCHECK_LE(ext.id, 14);
+ RTC_DCHECK_GE(ext.id, 1);
+ RTC_DCHECK_LE(ext.id, 14);
if (ext.name == RtpExtension::kAudioLevel) {
- CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
+ RTC_CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
kRtpExtensionAudioLevel, ext.id));
} else if (ext.name == RtpExtension::kAbsSendTime) {
- CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
+ RTC_CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
kRtpExtensionAbsoluteSendTime, ext.id));
} else if (ext.name == RtpExtension::kTransportSequenceNumber) {
- CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
+ RTC_CHECK(rtp_header_parser_->RegisterRtpHeaderExtension(
kRtpExtensionTransportSequenceNumber, ext.id));
} else {
RTC_NOTREACHED() << "Unsupported RTP extension.";
« no previous file with comments | « webrtc/tools/agc/agc_harness.cc ('k') | webrtc/video/bitrate_estimator_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698