Chromium Code Reviews| Index: webrtc/modules/audio_coding/test/TestRedFec.cc |
| diff --git a/webrtc/modules/audio_coding/test/TestRedFec.cc b/webrtc/modules/audio_coding/test/TestRedFec.cc |
| index dbb238f4998610e50579593b486334dc69713508..2d61fb25f0fe21cca779c9bb6f375b6d3db783b4 100644 |
| --- a/webrtc/modules/audio_coding/test/TestRedFec.cc |
| +++ b/webrtc/modules/audio_coding/test/TestRedFec.cc |
| @@ -341,7 +341,10 @@ void TestRedFec::Perform() { |
| #endif |
| // _channelA2B imposes 25% packet loss rate. |
| - EXPECT_EQ(0, _acmA->SetPacketLossRate(25)); |
| + _acmA->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) { |
| + EXPECT_TRUE(*encoder); |
| + (*encoder)->SetProjectedPacketLossRate(25.0f / 100.0f); |
|
kwiberg-webrtc
2016/10/06 09:46:13
Or 0.25... (yes, the argument to that function is
minyue-webrtc
2016/10/11 09:00:22
Done.
|
| + }); |
| #ifdef SUPPORT_RED_FB |
| EXPECT_EQ(0, _acmA->SetREDStatus(true)); |