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

Unified Diff: webrtc/video/rampup_tests.cc

Issue 1273363005: Add send transports to individual webrtc::Call streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase+comment Created 5 years, 4 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
« no previous file with comments | « webrtc/video/packet_injection_tests.cc ('k') | webrtc/video/replay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/rampup_tests.cc
diff --git a/webrtc/video/rampup_tests.cc b/webrtc/video/rampup_tests.cc
index c3c97878e295f05b4a23ff4bf7f5c968889c47ad..92b55bfdf71e2cd6fb246adab9dbd9be8e566211 100644
--- a/webrtc/video/rampup_tests.cc
+++ b/webrtc/video/rampup_tests.cc
@@ -381,13 +381,13 @@ void RampUpTest::RunRampUpTest(size_t num_streams,
rtx_ssrc_map[rtx_ssrcs[i]] = ssrcs[i];
}
- CreateSendConfig(num_streams);
- send_config_.rtp.extensions.clear();
-
test::DirectTransport receiver_transport;
StreamObserver stream_observer(rtx_ssrc_map, &receiver_transport,
Clock::GetRealTimeClock());
+ CreateSendConfig(num_streams, &stream_observer);
+ send_config_.rtp.extensions.clear();
+
if (extension_type == RtpExtension::kAbsSendTime) {
stream_observer.SetRemoteBitrateEstimator(
new RemoteBitrateEstimatorAbsSendTime(
@@ -404,12 +404,11 @@ void RampUpTest::RunRampUpTest(size_t num_streams,
extension_type.c_str(), kTransmissionTimeOffsetExtensionId));
}
- Call::Config call_config(&stream_observer);
+ Call::Config call_config;
if (start_bitrate_bps != 0) {
call_config.bitrate_config.start_bitrate_bps = start_bitrate_bps;
stream_observer.set_start_bitrate_bps(start_bitrate_bps);
}
-
CreateSenderCall(call_config);
receiver_transport.SetReceiver(sender_call_->Receiver());
@@ -462,12 +461,12 @@ void RampUpTest::RunRampUpDownUpTest(size_t number_of_streams,
LowRateStreamObserver stream_observer(
&receiver_transport, Clock::GetRealTimeClock(), number_of_streams, rtx);
- Call::Config call_config(&stream_observer);
+ Call::Config call_config;
call_config.bitrate_config.start_bitrate_bps = 60000;
CreateSenderCall(call_config);
receiver_transport.SetReceiver(sender_call_->Receiver());
- CreateSendConfig(number_of_streams);
+ CreateSendConfig(number_of_streams, &stream_observer);
send_config_.rtp.nack.rtp_history_ms = kNackRtpHistoryMs;
send_config_.rtp.extensions.push_back(RtpExtension(
« no previous file with comments | « webrtc/video/packet_injection_tests.cc ('k') | webrtc/video/replay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698