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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)
Patch Set: fix mistakes Created 3 years, 4 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/rtc_base/socketaddress.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 9158d362c684104a913d2dde6e7c26877e98f926..5732e8e52349a8737be31983c12a7e69d33beec1 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -2502,7 +2502,8 @@ void Channel::RegisterSenderCongestionControlObjects(
RTC_DCHECK(rtp_packet_sender);
RTC_DCHECK(transport_feedback_observer);
- RTC_DCHECK(packet_router && !packet_router_);
+ RTC_DCHECK(packet_router);
+ RTC_DCHECK(!packet_router_);
rtcp_observer_->SetBandwidthObserver(bandwidth_observer);
feedback_observer_proxy_->SetTransportFeedbackObserver(
transport_feedback_observer);
@@ -2516,7 +2517,8 @@ void Channel::RegisterSenderCongestionControlObjects(
void Channel::RegisterReceiverCongestionControlObjects(
PacketRouter* packet_router) {
- RTC_DCHECK(packet_router && !packet_router_);
+ RTC_DCHECK(packet_router);
+ RTC_DCHECK(!packet_router_);
constexpr bool remb_candidate = false;
packet_router->AddReceiveRtpModule(_rtpRtcpModule.get(), remb_candidate);
packet_router_ = packet_router;
« no previous file with comments | « webrtc/rtc_base/socketaddress.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698