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

Unified Diff: webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_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/red/audio_encoder_copy_red_unittest.cc
diff --git a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc
index fff8ee303c4664cfbe418dc9af70defc585455ca..075564d69ac777f5a85e417aaa5027609ae6e122 100644
--- a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc
+++ b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc
@@ -104,8 +104,9 @@ TEST_F(AudioEncoderCopyRedTest, CheckTargetAudioBitratePropagation) {
}
TEST_F(AudioEncoderCopyRedTest, CheckPacketLossFractionPropagation) {
- EXPECT_CALL(*mock_encoder_, OnReceivedUplinkPacketLossFraction(0.5));
- red_->OnReceivedUplinkPacketLossFraction(0.5);
+ EXPECT_CALL(*mock_encoder_,
+ OnReceivedUplinkPacketLossFraction(rtc::Optional<float>(0.5f)));
+ red_->OnReceivedUplinkPacketLossFraction(rtc::Optional<float>(0.5f));
}
// Checks that the an Encode() call is immediately propagated to the speech
« no previous file with comments | « webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc ('k') | webrtc/tools/event_log_visualizer/analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698