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

Unified Diff: webrtc/call/rampup_tests.cc

Issue 2508973002: Explicitly enable RED over RTX in rampup tests. (Closed)
Patch Set: Braces. Created 4 years, 1 month 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
« no previous file with comments | « webrtc/call/rampup_tests.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/rampup_tests.cc
diff --git a/webrtc/call/rampup_tests.cc b/webrtc/call/rampup_tests.cc
index 3cdcc991d2517265121b4474e8f24deb7fdcaea6..61176b199fc007c2148bb95baa0da8c51e7078b6 100644
--- a/webrtc/call/rampup_tests.cc
+++ b/webrtc/call/rampup_tests.cc
@@ -57,10 +57,6 @@ RampUpTester::RampUpTester(size_t num_video_streams,
this,
"BitrateStatsPollingThread") {
EXPECT_LE(num_audio_streams_, 1u);
- if (rtx_) {
- for (size_t i = 0; i < video_ssrcs_.size(); ++i)
- rtx_ssrc_map_[video_rtx_ssrcs_[i]] = video_ssrcs_[i];
- }
}
RampUpTester::~RampUpTester() {
@@ -172,6 +168,10 @@ void RampUpTester::ModifyVideoConfigs(
send_config->rtp.ulpfec.ulpfec_payload_type =
test::CallTest::kUlpfecPayloadType;
send_config->rtp.ulpfec.red_payload_type = test::CallTest::kRedPayloadType;
+ if (rtx_) {
+ send_config->rtp.ulpfec.red_rtx_payload_type =
+ test::CallTest::kRtxRedPayloadType;
+ }
}
size_t i = 0;
@@ -188,6 +188,10 @@ void RampUpTester::ModifyVideoConfigs(
send_config->rtp.ulpfec.red_payload_type;
recv_config.rtp.ulpfec.ulpfec_payload_type =
send_config->rtp.ulpfec.ulpfec_payload_type;
+ if (rtx_) {
+ recv_config.rtp.ulpfec.red_rtx_payload_type =
+ send_config->rtp.ulpfec.red_rtx_payload_type;
+ }
}
if (rtx_) {
« no previous file with comments | « webrtc/call/rampup_tests.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698