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

Unified Diff: webrtc/modules/audio_coding/test/TestRedFec.cc

Issue 2390883004: Hooking up audio network adaptor to VoE. (Closed)
Patch Set: rebasing Created 4 years, 2 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/test/TestRedFec.cc
diff --git a/webrtc/modules/audio_coding/test/TestRedFec.cc b/webrtc/modules/audio_coding/test/TestRedFec.cc
index dbb238f4998610e50579593b486334dc69713508..e87a24ac9faf1067a45e8a3025f6cdcb33e2c29f 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(0.25);
+ });
#ifdef SUPPORT_RED_FB
EXPECT_EQ(0, _acmA->SetREDStatus(true));

Powered by Google App Engine
This is Rietveld 408576698