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

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

Issue 2390883004: Hooking up audio network adaptor to VoE. (Closed)
Patch Set: 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..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));

Powered by Google App Engine
This is Rietveld 408576698