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

Unified Diff: webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc

Issue 2746333009: OnReceivedUplinkPacketLossFraction() receives [const rtc::Optional<float>&] (Closed)
Patch Set: Rebased Created 3 years, 9 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
Index: webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc
diff --git a/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc b/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc
index 4f7b2fc61a6c837827a3cb97e7fc0b63cfe4fcf1..69335534b19a4c37879cb5073faeea8cbde04218 100644
--- a/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc
+++ b/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc
@@ -226,8 +226,9 @@ TEST_F(AudioEncoderCngTest, CheckTargetAudioBitratePropagation) {
TEST_F(AudioEncoderCngTest, CheckPacketLossFractionPropagation) {
CreateCng(MakeCngConfig());
- EXPECT_CALL(*mock_encoder_, OnReceivedUplinkPacketLossFraction(0.5));
- cng_->OnReceivedUplinkPacketLossFraction(0.5);
+ EXPECT_CALL(*mock_encoder_,
+ OnReceivedUplinkPacketLossFraction(rtc::Optional<float>(0.5f)));
+ cng_->OnReceivedUplinkPacketLossFraction(rtc::Optional<float>(0.5f));
}
TEST_F(AudioEncoderCngTest, EncodeCallsVad) {

Powered by Google App Engine
This is Rietveld 408576698