Uncomment thread-checkers in ChannelProxy
The thread-check should be pass unit-tests, following https://codereview.webrtc.org/2998923002/.
BUG=webrtc:7405
TBR=stefan@webrtc.org
Review-Url: https://codereview.webrtc.org/2995243002
Cr-Original-Commit-Position: refs/heads/master@{#19510}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 27e812e36927e15401259e6a1a2cd01b9fdd4f79
diff --git a/voice_engine/channel_proxy.cc b/voice_engine/channel_proxy.cc
index 027659d..cdd4b66 100644
--- a/voice_engine/channel_proxy.cc
+++ b/voice_engine/channel_proxy.cc
@@ -319,17 +319,13 @@
}
void ChannelProxy::OnTwccBasedUplinkPacketLossRate(float packet_loss_rate) {
- // TODO(eladalon): This fails in UT; fix and uncomment.
- // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405
- // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
channel()->OnTwccBasedUplinkPacketLossRate(packet_loss_rate);
}
void ChannelProxy::OnRecoverableUplinkPacketLossRate(
float recoverable_packet_loss_rate) {
- // TODO(eladalon): This fails in UT; fix and uncomment.
- // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405
- // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
channel()->OnRecoverableUplinkPacketLossRate(recoverable_packet_loss_rate);
}