blob: 91788b097af5715bbecd594a046032fe513881f7 [file] [log] [blame]
pbos@webrtc.org744fbc72013-09-10 09:26:25 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
pbos@webrtc.org744fbc72013-09-10 09:26:25 +000010
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "call/rampup_tests.h"
stefanff483612015-12-21 03:14:00 -080012
Steve Anton40d55332019-01-07 10:21:47 -080013#include "absl/memory/memory.h"
Artem Titov4e199e92018-08-20 13:30:39 +020014#include "call/fake_network_pipe.h"
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020015#include "logging/rtc_event_log/output/rtc_event_log_output_file.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020016#include "rtc_base/checks.h"
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020017#include "rtc_base/flags.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020018#include "rtc_base/logging.h"
19#include "rtc_base/platform_thread.h"
Steve Anton10542f22019-01-11 09:11:00 -080020#include "rtc_base/string_encode.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020021#include "test/encoder_settings.h"
22#include "test/gtest.h"
23#include "test/testsupport/perf_test.h"
pbos@webrtc.org744fbc72013-09-10 09:26:25 +000024
25namespace webrtc {
pbos@webrtc.org29023282013-09-11 10:14:56 +000026namespace {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000027
Stefan Holmer723dff12015-10-05 14:59:41 +020028static const int64_t kPollIntervalMs = 20;
philipel5ef2bc12017-02-21 07:28:31 -080029static const int kExpectedHighVideoBitrateBps = 80000;
stefandb752f92016-12-05 08:23:40 -080030static const int kExpectedHighAudioBitrateBps = 30000;
31static const int kLowBandwidthLimitBps = 20000;
Sebastian Jansson12fb1702018-02-23 11:34:18 +010032// Set target detected bitrate to slightly larger than the target bitrate to
33// avoid flakiness.
34static const int kLowBitrateMarginBps = 2000;
pbos@webrtc.org29023282013-09-11 10:14:56 +000035
stefanff483612015-12-21 03:14:00 -080036std::vector<uint32_t> GenerateSsrcs(size_t num_streams, uint32_t ssrc_offset) {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000037 std::vector<uint32_t> ssrcs;
38 for (size_t i = 0; i != num_streams; ++i)
39 ssrcs.push_back(static_cast<uint32_t>(ssrc_offset + i));
40 return ssrcs;
41}
mflodman@webrtc.orgeb16b812014-06-16 08:57:39 +000042} // namespace
henrik.lundin@webrtc.org845862f2014-03-06 07:19:28 +000043
Mirko Bonadei2dfa9982018-10-18 11:35:32 +020044WEBRTC_DEFINE_string(ramp_dump_name,
45 "",
46 "Filename for dumped received RTP stream.");
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020047
stefanff483612015-12-21 03:14:00 -080048RampUpTester::RampUpTester(size_t num_video_streams,
49 size_t num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -080050 size_t num_flexfec_streams,
stefan4fbd1452015-09-28 03:57:14 -070051 unsigned int start_bitrate_bps,
stefan5a2c5062017-01-27 06:43:18 -080052 int64_t min_run_time_ms,
stefan4fbd1452015-09-28 03:57:14 -070053 const std::string& extension_type,
54 bool rtx,
stefan5a2c5062017-01-27 06:43:18 -080055 bool red,
56 bool report_perf_stats)
stefan4fbd1452015-09-28 03:57:14 -070057 : EndToEndTest(test::CallTest::kLongTimeoutMs),
stefan4fbd1452015-09-28 03:57:14 -070058 clock_(Clock::GetRealTimeClock()),
stefanff483612015-12-21 03:14:00 -080059 num_video_streams_(num_video_streams),
60 num_audio_streams_(num_audio_streams),
philipel5ef2bc12017-02-21 07:28:31 -080061 num_flexfec_streams_(num_flexfec_streams),
stefan4fbd1452015-09-28 03:57:14 -070062 rtx_(rtx),
63 red_(red),
stefan45b5fe52017-03-09 06:27:02 -080064 report_perf_stats_(report_perf_stats),
mflodman86cc6ff2016-07-26 04:44:06 -070065 sender_call_(nullptr),
stefan4fbd1452015-09-28 03:57:14 -070066 send_stream_(nullptr),
sprang4847ae62017-06-27 07:06:52 -070067 send_transport_(nullptr),
Artem Titov631cafa2018-08-21 21:01:00 +020068 send_simulated_network_(nullptr),
stefan4fbd1452015-09-28 03:57:14 -070069 start_bitrate_bps_(start_bitrate_bps),
stefan5a2c5062017-01-27 06:43:18 -080070 min_run_time_ms_(min_run_time_ms),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000071 expected_bitrate_bps_(0),
Erik Språngf3a7c9d2015-10-05 14:03:22 +020072 test_start_ms_(-1),
stefan4fbd1452015-09-28 03:57:14 -070073 ramp_up_finished_ms_(-1),
74 extension_type_(extension_type),
stefanff483612015-12-21 03:14:00 -080075 video_ssrcs_(GenerateSsrcs(num_video_streams_, 100)),
76 video_rtx_ssrcs_(GenerateSsrcs(num_video_streams_, 200)),
77 audio_ssrcs_(GenerateSsrcs(num_audio_streams_, 300)),
Peter Boström8c38e8b2015-11-26 17:45:47 +010078 poller_thread_(&BitrateStatsPollingThread,
79 this,
mflodman86cc6ff2016-07-26 04:44:06 -070080 "BitrateStatsPollingThread") {
philipel5ef2bc12017-02-21 07:28:31 -080081 if (red_)
82 EXPECT_EQ(0u, num_flexfec_streams_);
Stefan Holmerff2a6352016-01-14 10:00:21 +010083 EXPECT_LE(num_audio_streams_, 1u);
stefan4fbd1452015-09-28 03:57:14 -070084}
85
Yves Gerey665174f2018-06-19 15:03:05 +020086RampUpTester::~RampUpTester() {}
stefan4fbd1452015-09-28 03:57:14 -070087
Niels Möllerde8e6e62018-11-13 15:10:33 +010088void RampUpTester::ModifySenderBitrateConfig(
89 BitrateConstraints* bitrate_config) {
stefan4fbd1452015-09-28 03:57:14 -070090 if (start_bitrate_bps_ != 0) {
Niels Möllerde8e6e62018-11-13 15:10:33 +010091 bitrate_config->start_bitrate_bps = start_bitrate_bps_;
stefan4fbd1452015-09-28 03:57:14 -070092 }
Niels Möllerde8e6e62018-11-13 15:10:33 +010093 bitrate_config->min_bitrate_bps = 10000;
stefan4fbd1452015-09-28 03:57:14 -070094}
95
stefanff483612015-12-21 03:14:00 -080096void RampUpTester::OnVideoStreamsCreated(
stefan4fbd1452015-09-28 03:57:14 -070097 VideoSendStream* send_stream,
98 const std::vector<VideoReceiveStream*>& receive_streams) {
99 send_stream_ = send_stream;
100}
101
eladalon413ee9a2017-08-22 04:02:52 -0700102test::PacketTransport* RampUpTester::CreateSendTransport(
103 test::SingleThreadedTaskQueueForTesting* task_queue,
104 Call* sender_call) {
Artem Titov631cafa2018-08-21 21:01:00 +0200105 auto network = absl::make_unique<SimulatedNetwork>(forward_transport_config_);
106 send_simulated_network_ = network.get();
minyue20c84cc2017-04-10 16:57:57 -0700107 send_transport_ = new test::PacketTransport(
eladalon413ee9a2017-08-22 04:02:52 -0700108 task_queue, sender_call, this, test::PacketTransport::kSender,
Artem Titov4e199e92018-08-20 13:30:39 +0200109 test::CallTest::payload_type_map_,
Artem Titov631cafa2018-08-21 21:01:00 +0200110 absl::make_unique<FakeNetworkPipe>(Clock::GetRealTimeClock(),
111 std::move(network)));
stefane74eef12016-01-08 06:47:13 -0800112 return send_transport_;
stefanf116bd02015-10-27 08:29:42 -0700113}
114
Stefan Holmerd20e6512016-01-12 15:51:22 +0100115size_t RampUpTester::GetNumVideoStreams() const {
116 return num_video_streams_;
117}
118
Stefan Holmerff2a6352016-01-14 10:00:21 +0100119size_t RampUpTester::GetNumAudioStreams() const {
120 return num_audio_streams_;
121}
122
philipel5ef2bc12017-02-21 07:28:31 -0800123size_t RampUpTester::GetNumFlexfecStreams() const {
124 return num_flexfec_streams_;
125}
126
perkjfa10b552016-10-02 23:45:26 -0700127class RampUpTester::VideoStreamFactory
128 : public VideoEncoderConfig::VideoStreamFactoryInterface {
129 public:
130 VideoStreamFactory() {}
131
132 private:
133 std::vector<VideoStream> CreateEncoderStreams(
134 int width,
135 int height,
136 const VideoEncoderConfig& encoder_config) override {
137 std::vector<VideoStream> streams =
138 test::CreateVideoStreams(width, height, encoder_config);
139 if (encoder_config.number_of_streams == 1) {
140 streams[0].target_bitrate_bps = streams[0].max_bitrate_bps = 2000000;
141 }
142 return streams;
143 }
144};
145
stefanff483612015-12-21 03:14:00 -0800146void RampUpTester::ModifyVideoConfigs(
stefan4fbd1452015-09-28 03:57:14 -0700147 VideoSendStream::Config* send_config,
148 std::vector<VideoReceiveStream::Config>* receive_configs,
149 VideoEncoderConfig* encoder_config) {
150 send_config->suspend_below_min_bitrate = true;
perkjfa10b552016-10-02 23:45:26 -0700151 encoder_config->number_of_streams = num_video_streams_;
152 encoder_config->max_bitrate_bps = 2000000;
153 encoder_config->video_stream_factory =
154 new rtc::RefCountedObject<RampUpTester::VideoStreamFactory>();
stefanff483612015-12-21 03:14:00 -0800155 if (num_video_streams_ == 1) {
stefan4fbd1452015-09-28 03:57:14 -0700156 // For single stream rampup until 1mbps
157 expected_bitrate_bps_ = kSingleStreamTargetBps;
158 } else {
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200159 // To ensure simulcast rate allocation.
160 send_config->rtp.payload_name = "VP8";
161 encoder_config->codec_type = kVideoCodecVP8;
perkjfa10b552016-10-02 23:45:26 -0700162 std::vector<VideoStream> streams = test::CreateVideoStreams(
163 test::CallTest::kDefaultWidth, test::CallTest::kDefaultHeight,
164 *encoder_config);
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200165 // For multi stream rampup until all streams are being sent. That means
166 // enough bitrate to send all the target streams plus the min bitrate of
167 // the last one.
perkjfa10b552016-10-02 23:45:26 -0700168 expected_bitrate_bps_ = streams.back().min_bitrate_bps;
169 for (size_t i = 0; i < streams.size() - 1; ++i) {
170 expected_bitrate_bps_ += streams[i].target_bitrate_bps;
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000171 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000172 }
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000173
stefan4fbd1452015-09-28 03:57:14 -0700174 send_config->rtp.extensions.clear();
175
176 bool remb;
stefan43edf0f2015-11-20 18:05:48 -0800177 bool transport_cc;
isheriff6f8d6862016-05-26 11:24:55 -0700178 if (extension_type_ == RtpExtension::kAbsSendTimeUri) {
stefan4fbd1452015-09-28 03:57:14 -0700179 remb = true;
stefan43edf0f2015-11-20 18:05:48 -0800180 transport_cc = false;
stefan4fbd1452015-09-28 03:57:14 -0700181 send_config->rtp.extensions.push_back(
182 RtpExtension(extension_type_.c_str(), kAbsSendTimeExtensionId));
isheriff6f8d6862016-05-26 11:24:55 -0700183 } else if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
stefan4fbd1452015-09-28 03:57:14 -0700184 remb = false;
stefan43edf0f2015-11-20 18:05:48 -0800185 transport_cc = true;
stefan4fbd1452015-09-28 03:57:14 -0700186 send_config->rtp.extensions.push_back(RtpExtension(
187 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000188 } else {
stefan4fbd1452015-09-28 03:57:14 -0700189 remb = true;
stefan43edf0f2015-11-20 18:05:48 -0800190 transport_cc = false;
stefan4fbd1452015-09-28 03:57:14 -0700191 send_config->rtp.extensions.push_back(RtpExtension(
192 extension_type_.c_str(), kTransmissionTimeOffsetExtensionId));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000193 }
stefan4fbd1452015-09-28 03:57:14 -0700194
195 send_config->rtp.nack.rtp_history_ms = test::CallTest::kNackRtpHistoryMs;
stefanff483612015-12-21 03:14:00 -0800196 send_config->rtp.ssrcs = video_ssrcs_;
stefan4fbd1452015-09-28 03:57:14 -0700197 if (rtx_) {
198 send_config->rtp.rtx.payload_type = test::CallTest::kSendRtxPayloadType;
stefanff483612015-12-21 03:14:00 -0800199 send_config->rtp.rtx.ssrcs = video_rtx_ssrcs_;
stefan4fbd1452015-09-28 03:57:14 -0700200 }
201 if (red_) {
brandtrb5f2c3f2016-10-04 23:28:39 -0700202 send_config->rtp.ulpfec.ulpfec_payload_type =
stefan4fbd1452015-09-28 03:57:14 -0700203 test::CallTest::kUlpfecPayloadType;
brandtrb5f2c3f2016-10-04 23:28:39 -0700204 send_config->rtp.ulpfec.red_payload_type = test::CallTest::kRedPayloadType;
brandtrfbfb5362016-11-17 04:18:37 -0800205 if (rtx_) {
206 send_config->rtp.ulpfec.red_rtx_payload_type =
207 test::CallTest::kRtxRedPayloadType;
208 }
stefan4fbd1452015-09-28 03:57:14 -0700209 }
210
211 size_t i = 0;
212 for (VideoReceiveStream::Config& recv_config : *receive_configs) {
213 recv_config.rtp.remb = remb;
stefan43edf0f2015-11-20 18:05:48 -0800214 recv_config.rtp.transport_cc = transport_cc;
stefan4fbd1452015-09-28 03:57:14 -0700215 recv_config.rtp.extensions = send_config->rtp.extensions;
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200216 recv_config.decoders.reserve(1);
217 recv_config.decoders[0].payload_type = send_config->rtp.payload_type;
Niels Möllercb7e1d22018-09-11 15:56:04 +0200218 recv_config.decoders[0].video_format =
219 SdpVideoFormat(send_config->rtp.payload_name);
stefan4fbd1452015-09-28 03:57:14 -0700220
stefanff483612015-12-21 03:14:00 -0800221 recv_config.rtp.remote_ssrc = video_ssrcs_[i];
stefan4fbd1452015-09-28 03:57:14 -0700222 recv_config.rtp.nack.rtp_history_ms = send_config->rtp.nack.rtp_history_ms;
223
224 if (red_) {
nisse3b3622f2017-09-26 02:49:21 -0700225 recv_config.rtp.red_payload_type =
brandtrb5f2c3f2016-10-04 23:28:39 -0700226 send_config->rtp.ulpfec.red_payload_type;
nisse3b3622f2017-09-26 02:49:21 -0700227 recv_config.rtp.ulpfec_payload_type =
brandtrb5f2c3f2016-10-04 23:28:39 -0700228 send_config->rtp.ulpfec.ulpfec_payload_type;
brandtrfbfb5362016-11-17 04:18:37 -0800229 if (rtx_) {
nisseca5706d2017-09-11 02:32:16 -0700230 recv_config.rtp.rtx_associated_payload_types
231 [send_config->rtp.ulpfec.red_rtx_payload_type] =
232 send_config->rtp.ulpfec.red_payload_type;
brandtrfbfb5362016-11-17 04:18:37 -0800233 }
stefan4fbd1452015-09-28 03:57:14 -0700234 }
235
236 if (rtx_) {
brandtr14742122017-01-27 04:53:07 -0800237 recv_config.rtp.rtx_ssrc = video_rtx_ssrcs_[i];
238 recv_config.rtp
nisse26e3abb2017-08-25 04:44:25 -0700239 .rtx_associated_payload_types[send_config->rtp.rtx.payload_type] =
Niels Möller259a4972018-04-05 15:36:51 +0200240 send_config->rtp.payload_type;
stefan4fbd1452015-09-28 03:57:14 -0700241 }
242 ++i;
243 }
philipel5ef2bc12017-02-21 07:28:31 -0800244
245 RTC_DCHECK_LE(num_flexfec_streams_, 1);
246 if (num_flexfec_streams_ == 1) {
247 send_config->rtp.flexfec.payload_type = test::CallTest::kFlexfecPayloadType;
248 send_config->rtp.flexfec.ssrc = test::CallTest::kFlexfecSendSsrc;
249 send_config->rtp.flexfec.protected_media_ssrcs = {video_ssrcs_[0]};
250 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000251}
252
Stefan Holmerff2a6352016-01-14 10:00:21 +0100253void RampUpTester::ModifyAudioConfigs(
254 AudioSendStream::Config* send_config,
255 std::vector<AudioReceiveStream::Config>* receive_configs) {
256 if (num_audio_streams_ == 0)
257 return;
258
isheriff6f8d6862016-05-26 11:24:55 -0700259 EXPECT_NE(RtpExtension::kTimestampOffsetUri, extension_type_)
Stefan Holmerff2a6352016-01-14 10:00:21 +0100260 << "Audio BWE not supported with toffset.";
philipel5ef2bc12017-02-21 07:28:31 -0800261 EXPECT_NE(RtpExtension::kAbsSendTimeUri, extension_type_)
262 << "Audio BWE not supported with abs-send-time.";
Stefan Holmerff2a6352016-01-14 10:00:21 +0100263
264 send_config->rtp.ssrc = audio_ssrcs_[0];
265 send_config->rtp.extensions.clear();
266
minyue10cbb462016-11-07 09:29:22 -0800267 send_config->min_bitrate_bps = 6000;
268 send_config->max_bitrate_bps = 60000;
mflodman86cc6ff2016-07-26 04:44:06 -0700269
Stefan Holmerff2a6352016-01-14 10:00:21 +0100270 bool transport_cc = false;
philipel5ef2bc12017-02-21 07:28:31 -0800271 if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
Stefan Holmerff2a6352016-01-14 10:00:21 +0100272 transport_cc = true;
273 send_config->rtp.extensions.push_back(RtpExtension(
274 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
275 }
276
277 for (AudioReceiveStream::Config& recv_config : *receive_configs) {
Stefan Holmerff2a6352016-01-14 10:00:21 +0100278 recv_config.rtp.transport_cc = transport_cc;
279 recv_config.rtp.extensions = send_config->rtp.extensions;
280 recv_config.rtp.remote_ssrc = send_config->rtp.ssrc;
281 }
282}
283
philipel5ef2bc12017-02-21 07:28:31 -0800284void RampUpTester::ModifyFlexfecConfigs(
285 std::vector<FlexfecReceiveStream::Config>* receive_configs) {
286 if (num_flexfec_streams_ == 0)
287 return;
288 RTC_DCHECK_EQ(1, num_flexfec_streams_);
289 (*receive_configs)[0].payload_type = test::CallTest::kFlexfecPayloadType;
290 (*receive_configs)[0].remote_ssrc = test::CallTest::kFlexfecSendSsrc;
291 (*receive_configs)[0].protected_media_ssrcs = {video_ssrcs_[0]};
292 (*receive_configs)[0].local_ssrc = video_ssrcs_[0];
293 if (extension_type_ == RtpExtension::kAbsSendTimeUri) {
294 (*receive_configs)[0].transport_cc = false;
295 (*receive_configs)[0].rtp_header_extensions.push_back(
296 RtpExtension(extension_type_.c_str(), kAbsSendTimeExtensionId));
297 } else if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
298 (*receive_configs)[0].transport_cc = true;
299 (*receive_configs)[0].rtp_header_extensions.push_back(RtpExtension(
300 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
301 }
302}
303
stefan4fbd1452015-09-28 03:57:14 -0700304void RampUpTester::OnCallsCreated(Call* sender_call, Call* receiver_call) {
305 sender_call_ = sender_call;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000306}
307
tommi0f8b4032017-02-22 11:22:05 -0800308void RampUpTester::BitrateStatsPollingThread(void* obj) {
309 static_cast<RampUpTester*>(obj)->PollStats();
pbos@webrtc.org32452b22014-10-22 12:15:24 +0000310}
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000311
tommi0f8b4032017-02-22 11:22:05 -0800312void RampUpTester::PollStats() {
313 do {
314 if (sender_call_) {
315 Call::Stats stats = sender_call_->GetStats();
stefan4fbd1452015-09-28 03:57:14 -0700316
tommi0f8b4032017-02-22 11:22:05 -0800317 EXPECT_GE(expected_bitrate_bps_, 0);
318 if (stats.send_bandwidth_bps >= expected_bitrate_bps_ &&
319 (min_run_time_ms_ == -1 ||
320 clock_->TimeInMilliseconds() - test_start_ms_ >= min_run_time_ms_)) {
321 ramp_up_finished_ms_ = clock_->TimeInMilliseconds();
322 observation_complete_.Set();
323 }
stefan4fbd1452015-09-28 03:57:14 -0700324 }
tommi0f8b4032017-02-22 11:22:05 -0800325 } while (!stop_event_.Wait(kPollIntervalMs));
Erik Språng468e62a2015-07-06 10:50:47 +0200326}
327
stefan4fbd1452015-09-28 03:57:14 -0700328void RampUpTester::ReportResult(const std::string& measurement,
329 size_t value,
330 const std::string& units) const {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000331 webrtc::test::PrintResult(
332 measurement, "",
stefanff483612015-12-21 03:14:00 -0800333 ::testing::UnitTest::GetInstance()->current_test_info()->name(), value,
334 units, false);
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000335}
336
stefan092508a2015-09-29 02:26:42 -0700337void RampUpTester::AccumulateStats(const VideoSendStream::StreamStats& stream,
338 size_t* total_packets_sent,
339 size_t* total_sent,
340 size_t* padding_sent,
341 size_t* media_sent) const {
stefan4fbd1452015-09-28 03:57:14 -0700342 *total_packets_sent += stream.rtp_stats.transmitted.packets +
343 stream.rtp_stats.retransmitted.packets +
344 stream.rtp_stats.fec.packets;
345 *total_sent += stream.rtp_stats.transmitted.TotalBytes() +
346 stream.rtp_stats.retransmitted.TotalBytes() +
347 stream.rtp_stats.fec.TotalBytes();
348 *padding_sent += stream.rtp_stats.transmitted.padding_bytes +
349 stream.rtp_stats.retransmitted.padding_bytes +
350 stream.rtp_stats.fec.padding_bytes;
351 *media_sent += stream.rtp_stats.MediaPayloadBytes();
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000352}
353
stefan4fbd1452015-09-28 03:57:14 -0700354void RampUpTester::TriggerTestDone() {
Erik Språngf3a7c9d2015-10-05 14:03:22 +0200355 RTC_DCHECK_GE(test_start_ms_, 0);
356
Stefan Holmerff2a6352016-01-14 10:00:21 +0100357 // TODO(holmer): Add audio send stats here too when those APIs are available.
mflodman86cc6ff2016-07-26 04:44:06 -0700358 if (!send_stream_)
359 return;
360
stefan4fbd1452015-09-28 03:57:14 -0700361 VideoSendStream::Stats send_stats = send_stream_->GetStats();
362
363 size_t total_packets_sent = 0;
364 size_t total_sent = 0;
365 size_t padding_sent = 0;
366 size_t media_sent = 0;
stefanff483612015-12-21 03:14:00 -0800367 for (uint32_t ssrc : video_ssrcs_) {
stefan092508a2015-09-29 02:26:42 -0700368 AccumulateStats(send_stats.substreams[ssrc], &total_packets_sent,
369 &total_sent, &padding_sent, &media_sent);
stefan4fbd1452015-09-28 03:57:14 -0700370 }
371
372 size_t rtx_total_packets_sent = 0;
373 size_t rtx_total_sent = 0;
374 size_t rtx_padding_sent = 0;
375 size_t rtx_media_sent = 0;
stefanff483612015-12-21 03:14:00 -0800376 for (uint32_t rtx_ssrc : video_rtx_ssrcs_) {
stefan092508a2015-09-29 02:26:42 -0700377 AccumulateStats(send_stats.substreams[rtx_ssrc], &rtx_total_packets_sent,
378 &rtx_total_sent, &rtx_padding_sent, &rtx_media_sent);
stefan4fbd1452015-09-28 03:57:14 -0700379 }
380
stefan5a2c5062017-01-27 06:43:18 -0800381 if (report_perf_stats_) {
stefan5a2c5062017-01-27 06:43:18 -0800382 ReportResult("ramp-up-media-sent", media_sent, "bytes");
383 ReportResult("ramp-up-padding-sent", padding_sent, "bytes");
stefan5a2c5062017-01-27 06:43:18 -0800384 ReportResult("ramp-up-rtx-media-sent", rtx_media_sent, "bytes");
385 ReportResult("ramp-up-rtx-padding-sent", rtx_padding_sent, "bytes");
386 if (ramp_up_finished_ms_ >= 0) {
387 ReportResult("ramp-up-time", ramp_up_finished_ms_ - test_start_ms_,
388 "milliseconds");
389 }
390 ReportResult("ramp-up-average-network-latency",
391 send_transport_->GetAverageDelayMs(), "milliseconds");
stefan4fbd1452015-09-28 03:57:14 -0700392 }
393}
394
395void RampUpTester::PerformTest() {
Erik Språngf3a7c9d2015-10-05 14:03:22 +0200396 test_start_ms_ = clock_->TimeInMilliseconds();
Peter Boström8c38e8b2015-11-26 17:45:47 +0100397 poller_thread_.Start();
Peter Boström5811a392015-12-10 13:02:50 +0100398 EXPECT_TRUE(Wait()) << "Timed out while waiting for ramp-up to complete.";
stefan4fbd1452015-09-28 03:57:14 -0700399 TriggerTestDone();
tommi0f8b4032017-02-22 11:22:05 -0800400 stop_event_.Set();
Peter Boström8c38e8b2015-11-26 17:45:47 +0100401 poller_thread_.Stop();
stefan4fbd1452015-09-28 03:57:14 -0700402}
403
Stefan Holmerff2a6352016-01-14 10:00:21 +0100404RampUpDownUpTester::RampUpDownUpTester(size_t num_video_streams,
405 size_t num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -0800406 size_t num_flexfec_streams,
stefan4fbd1452015-09-28 03:57:14 -0700407 unsigned int start_bitrate_bps,
408 const std::string& extension_type,
409 bool rtx,
philipel5ef2bc12017-02-21 07:28:31 -0800410 bool red,
stefan45b5fe52017-03-09 06:27:02 -0800411 const std::vector<int>& loss_rates,
412 bool report_perf_stats)
Stefan Holmerff2a6352016-01-14 10:00:21 +0100413 : RampUpTester(num_video_streams,
414 num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -0800415 num_flexfec_streams,
Stefan Holmerff2a6352016-01-14 10:00:21 +0100416 start_bitrate_bps,
stefan5a2c5062017-01-27 06:43:18 -0800417 0,
Stefan Holmerff2a6352016-01-14 10:00:21 +0100418 extension_type,
419 rtx,
stefan5a2c5062017-01-27 06:43:18 -0800420 red,
stefan45b5fe52017-03-09 06:27:02 -0800421 report_perf_stats),
stefan76d9c9c2017-04-01 06:51:09 -0700422 link_rates_({4 * GetExpectedHighBitrate() / (3 * 1000),
423 kLowBandwidthLimitBps / 1000,
424 4 * GetExpectedHighBitrate() / (3 * 1000), 0}),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000425 test_state_(kFirstRampup),
philipel5ef2bc12017-02-21 07:28:31 -0800426 next_state_(kTransitionToNextState),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000427 state_start_ms_(clock_->TimeInMilliseconds()),
stefan4fbd1452015-09-28 03:57:14 -0700428 interval_start_ms_(clock_->TimeInMilliseconds()),
philipel5ef2bc12017-02-21 07:28:31 -0800429 sent_bytes_(0),
430 loss_rates_(loss_rates) {
431 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_];
432 forward_transport_config_.queue_delay_ms = 100;
433 forward_transport_config_.loss_percent = loss_rates_[test_state_];
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000434}
435
stefan4fbd1452015-09-28 03:57:14 -0700436RampUpDownUpTester::~RampUpDownUpTester() {}
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000437
tommi0f8b4032017-02-22 11:22:05 -0800438void RampUpDownUpTester::PollStats() {
439 do {
Alex Narest78609d52017-10-20 10:37:47 +0200440 int transmit_bitrate_bps = 0;
441 bool suspended = false;
442 if (num_video_streams_ > 0) {
tommi0f8b4032017-02-22 11:22:05 -0800443 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats();
tommi0f8b4032017-02-22 11:22:05 -0800444 for (auto it : stats.substreams) {
445 transmit_bitrate_bps += it.second.total_bitrate_bps;
446 }
Alex Narest78609d52017-10-20 10:37:47 +0200447 suspended = stats.suspended;
448 }
449 if (num_audio_streams_ > 0 && sender_call_ != nullptr) {
tommi0f8b4032017-02-22 11:22:05 -0800450 // An audio send stream doesn't have bitrate stats, so the call send BW is
451 // currently used instead.
Alex Narest78609d52017-10-20 10:37:47 +0200452 transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps;
mflodman@webrtc.orgeb16b812014-06-16 08:57:39 +0000453 }
Alex Narest78609d52017-10-20 10:37:47 +0200454 EvolveTestState(transmit_bitrate_bps, suspended);
tommi0f8b4032017-02-22 11:22:05 -0800455 } while (!stop_event_.Wait(kPollIntervalMs));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000456}
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000457
Niels Möllerde8e6e62018-11-13 15:10:33 +0100458void RampUpDownUpTester::ModifyReceiverBitrateConfig(
459 BitrateConstraints* bitrate_config) {
460 bitrate_config->min_bitrate_bps = 10000;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000461}
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000462
stefan4fbd1452015-09-28 03:57:14 -0700463std::string RampUpDownUpTester::GetModifierString() const {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000464 std::string str("_");
stefanff483612015-12-21 03:14:00 -0800465 if (num_video_streams_ > 0) {
Jonas Olsson0a713b62018-04-04 15:49:32 +0200466 str += rtc::ToString(num_video_streams_);
stefanff483612015-12-21 03:14:00 -0800467 str += "stream";
468 str += (num_video_streams_ > 1 ? "s" : "");
469 str += "_";
470 }
471 if (num_audio_streams_ > 0) {
Jonas Olsson0a713b62018-04-04 15:49:32 +0200472 str += rtc::ToString(num_audio_streams_);
stefanff483612015-12-21 03:14:00 -0800473 str += "stream";
474 str += (num_audio_streams_ > 1 ? "s" : "");
475 str += "_";
476 }
stefan4fbd1452015-09-28 03:57:14 -0700477 str += (rtx_ ? "" : "no");
Edward Lemurdd3987f2018-01-04 19:44:54 +0100478 str += "rtx_";
479 str += (red_ ? "" : "no");
480 str += "red";
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000481 return str;
482}
andresp@webrtc.orgc1480792014-03-20 03:23:55 +0000483
stefandb752f92016-12-05 08:23:40 -0800484int RampUpDownUpTester::GetExpectedHighBitrate() const {
stefan38d8b3c2017-01-09 04:19:24 -0800485 int expected_bitrate_bps = 0;
486 if (num_audio_streams_ > 0)
487 expected_bitrate_bps += kExpectedHighAudioBitrateBps;
488 if (num_video_streams_ > 0)
489 expected_bitrate_bps += kExpectedHighVideoBitrateBps;
490 return expected_bitrate_bps;
491}
492
philipel5ef2bc12017-02-21 07:28:31 -0800493size_t RampUpDownUpTester::GetFecBytes() const {
494 size_t flex_fec_bytes = 0;
495 if (num_flexfec_streams_ > 0) {
496 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats();
497 for (const auto& kv : stats.substreams)
498 flex_fec_bytes += kv.second.rtp_stats.fec.TotalBytes();
499 }
500 return flex_fec_bytes;
501}
502
503bool RampUpDownUpTester::ExpectingFec() const {
504 return num_flexfec_streams_ > 0 && forward_transport_config_.loss_percent > 0;
505}
506
stefan4fbd1452015-09-28 03:57:14 -0700507void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000508 int64_t now = clock_->TimeInMilliseconds();
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000509 switch (test_state_) {
philipel5ef2bc12017-02-21 07:28:31 -0800510 case kFirstRampup:
stefan4fbd1452015-09-28 03:57:14 -0700511 EXPECT_FALSE(suspended);
stefandb752f92016-12-05 08:23:40 -0800512 if (bitrate_bps >= GetExpectedHighBitrate()) {
stefan45b5fe52017-03-09 06:27:02 -0800513 if (report_perf_stats_) {
514 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
515 "first_rampup", now - state_start_ms_, "ms",
516 false);
517 }
philipel5ef2bc12017-02-21 07:28:31 -0800518 // Apply loss during the transition between states if FEC is enabled.
519 forward_transport_config_.loss_percent = loss_rates_[test_state_];
520 test_state_ = kTransitionToNextState;
521 next_state_ = kLowRate;
andresp@webrtc.orgc1480792014-03-20 03:23:55 +0000522 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000523 break;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000524 case kLowRate: {
mflodman86cc6ff2016-07-26 04:44:06 -0700525 // Audio streams are never suspended.
526 bool check_suspend_state = num_video_streams_ > 0;
Sebastian Jansson12fb1702018-02-23 11:34:18 +0100527 if (bitrate_bps < kLowBandwidthLimitBps + kLowBitrateMarginBps &&
mflodman86cc6ff2016-07-26 04:44:06 -0700528 suspended == check_suspend_state) {
stefan45b5fe52017-03-09 06:27:02 -0800529 if (report_perf_stats_) {
530 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
531 "rampdown", now - state_start_ms_, "ms",
532 false);
533 }
philipel5ef2bc12017-02-21 07:28:31 -0800534 // Apply loss during the transition between states if FEC is enabled.
535 forward_transport_config_.loss_percent = loss_rates_[test_state_];
536 test_state_ = kTransitionToNextState;
537 next_state_ = kSecondRampup;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000538 }
539 break;
540 }
philipel5ef2bc12017-02-21 07:28:31 -0800541 case kSecondRampup:
stefandb752f92016-12-05 08:23:40 -0800542 if (bitrate_bps >= GetExpectedHighBitrate() && !suspended) {
stefan45b5fe52017-03-09 06:27:02 -0800543 if (report_perf_stats_) {
544 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
545 "second_rampup", now - state_start_ms_,
546 "ms", false);
547 ReportResult("ramp-up-down-up-average-network-latency",
548 send_transport_->GetAverageDelayMs(), "milliseconds");
549 }
philipel5ef2bc12017-02-21 07:28:31 -0800550 // Apply loss during the transition between states if FEC is enabled.
551 forward_transport_config_.loss_percent = loss_rates_[test_state_];
552 test_state_ = kTransitionToNextState;
553 next_state_ = kTestEnd;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000554 }
555 break;
philipel5ef2bc12017-02-21 07:28:31 -0800556 case kTestEnd:
557 observation_complete_.Set();
558 break;
559 case kTransitionToNextState:
560 if (!ExpectingFec() || GetFecBytes() > 0) {
561 test_state_ = next_state_;
562 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_];
563 // No loss while ramping up and down as it may affect the BWE
564 // negatively, making the test flaky.
565 forward_transport_config_.loss_percent = 0;
566 state_start_ms_ = now;
567 interval_start_ms_ = now;
568 sent_bytes_ = 0;
Artem Titov631cafa2018-08-21 21:01:00 +0200569 send_simulated_network_->SetConfig(forward_transport_config_);
philipel5ef2bc12017-02-21 07:28:31 -0800570 }
571 break;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000572 }
573}
pbos@webrtc.orgf577ae92014-03-19 08:43:57 +0000574
stefan4fbd1452015-09-28 03:57:14 -0700575class RampUpTest : public test::CallTest {
Erik Språng6b8d3552015-09-24 15:06:57 +0200576 public:
Sebastian Janssonf5e767d2018-10-15 13:24:31 +0200577 RampUpTest() {
578 std::string dump_name(FLAG_ramp_dump_name);
579 if (!dump_name.empty()) {
580 send_event_log_ = RtcEventLog::Create(RtcEventLog::EncodingType::Legacy);
581 recv_event_log_ = RtcEventLog::Create(RtcEventLog::EncodingType::Legacy);
582 bool event_log_started =
583 send_event_log_->StartLogging(
584 absl::make_unique<RtcEventLogOutputFile>(
585 dump_name + ".send.rtc.dat", RtcEventLog::kUnlimitedOutput),
586 RtcEventLog::kImmediateOutput) &&
587 recv_event_log_->StartLogging(
588 absl::make_unique<RtcEventLogOutputFile>(
589 dump_name + ".recv.rtc.dat", RtcEventLog::kUnlimitedOutput),
590 RtcEventLog::kImmediateOutput);
591 RTC_DCHECK(event_log_started);
592 }
593 }
Erik Språng6b8d3552015-09-24 15:06:57 +0200594};
595
Stefan Holmerff2a6352016-01-14 10:00:21 +0100596static const uint32_t kStartBitrateBps = 60000;
597
stefan38d8b3c2017-01-09 04:19:24 -0800598TEST_F(RampUpTest, UpDownUpAbsSendTimeSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800599 std::vector<int> loss_rates = {0, 0, 0, 0};
600 RampUpDownUpTester test(3, 0, 0, kStartBitrateBps,
stefan45b5fe52017-03-09 06:27:02 -0800601 RtpExtension::kAbsSendTimeUri, true, true, loss_rates,
602 true);
stefane74eef12016-01-08 06:47:13 -0800603 RunBaseTest(&test);
Shao Changbine62202f2015-04-21 20:24:50 +0800604}
Stefan Holmerff2a6352016-01-14 10:00:21 +0100605
Taylor Brandstetterba6b5032018-02-16 09:59:56 -0800606// TODO(bugs.webrtc.org/8878)
607#if defined(WEBRTC_MAC)
608#define MAYBE_UpDownUpTransportSequenceNumberRtx \
609 DISABLED_UpDownUpTransportSequenceNumberRtx
610#else
611#define MAYBE_UpDownUpTransportSequenceNumberRtx \
612 UpDownUpTransportSequenceNumberRtx
613#endif
614TEST_F(RampUpTest, MAYBE_UpDownUpTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800615 std::vector<int> loss_rates = {0, 0, 0, 0};
616 RampUpDownUpTester test(3, 0, 0, kStartBitrateBps,
isheriff6f8d6862016-05-26 11:24:55 -0700617 RtpExtension::kTransportSequenceNumberUri, true,
stefan45b5fe52017-03-09 06:27:02 -0800618 false, loss_rates, true);
philipel5ef2bc12017-02-21 07:28:31 -0800619 RunBaseTest(&test);
620}
621
stefan45b5fe52017-03-09 06:27:02 -0800622// TODO(holmer): Tests which don't report perf stats should be moved to a
623// different executable since they per definition are not perf tests.
Taylor Brandstetter05d98222017-10-10 12:12:53 -0700624// This test is disabled because it crashes on Linux, and is flaky on other
625// platforms. See: crbug.com/webrtc/7919
626TEST_F(RampUpTest, DISABLED_UpDownUpTransportSequenceNumberPacketLoss) {
philipel5ef2bc12017-02-21 07:28:31 -0800627 std::vector<int> loss_rates = {20, 0, 0, 0};
628 RampUpDownUpTester test(1, 0, 1, kStartBitrateBps,
629 RtpExtension::kTransportSequenceNumberUri, true,
stefan45b5fe52017-03-09 06:27:02 -0800630 false, loss_rates, false);
Stefan Holmerff2a6352016-01-14 10:00:21 +0100631 RunBaseTest(&test);
632}
633
Taylor Brandstetterab86e7f2018-02-12 15:16:02 -0800634// TODO(bugs.webrtc.org/8878)
635#if defined(WEBRTC_MAC)
636#define MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx \
637 DISABLED_UpDownUpAudioVideoTransportSequenceNumberRtx
638#else
639#define MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx \
640 UpDownUpAudioVideoTransportSequenceNumberRtx
641#endif
642TEST_F(RampUpTest, MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800643 std::vector<int> loss_rates = {0, 0, 0, 0};
644 RampUpDownUpTester test(3, 1, 0, kStartBitrateBps,
isheriff6f8d6862016-05-26 11:24:55 -0700645 RtpExtension::kTransportSequenceNumberUri, true,
stefanff2ebf52017-03-13 01:27:03 -0700646 false, loss_rates, false);
Stefan Holmerff2a6352016-01-14 10:00:21 +0100647 RunBaseTest(&test);
648}
649
stefan38d8b3c2017-01-09 04:19:24 -0800650TEST_F(RampUpTest, UpDownUpAudioTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800651 std::vector<int> loss_rates = {0, 0, 0, 0};
652 RampUpDownUpTester test(0, 1, 0, kStartBitrateBps,
mflodman86cc6ff2016-07-26 04:44:06 -0700653 RtpExtension::kTransportSequenceNumberUri, true,
stefanff2ebf52017-03-13 01:27:03 -0700654 false, loss_rates, false);
mflodman86cc6ff2016-07-26 04:44:06 -0700655 RunBaseTest(&test);
656}
657
stefan38d8b3c2017-01-09 04:19:24 -0800658TEST_F(RampUpTest, TOffsetSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800659 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTimestampOffsetUri, true,
660 true, true);
stefan38d8b3c2017-01-09 04:19:24 -0800661 RunBaseTest(&test);
662}
663
664TEST_F(RampUpTest, AbsSendTime) {
philipel5ef2bc12017-02-21 07:28:31 -0800665 RampUpTester test(1, 0, 0, 0, 0, RtpExtension::kAbsSendTimeUri, false, false,
stefanff2ebf52017-03-13 01:27:03 -0700666 false);
stefane74eef12016-01-08 06:47:13 -0800667 RunBaseTest(&test);
pbos@webrtc.org85bd53e2014-12-10 10:36:20 +0000668}
669
stefan38d8b3c2017-01-09 04:19:24 -0800670TEST_F(RampUpTest, AbsSendTimeSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800671 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kAbsSendTimeUri, true, true,
stefan5a2c5062017-01-27 06:43:18 -0800672 true);
stefane74eef12016-01-08 06:47:13 -0800673 RunBaseTest(&test);
pbos@webrtc.org85bd53e2014-12-10 10:36:20 +0000674}
675
stefan38d8b3c2017-01-09 04:19:24 -0800676TEST_F(RampUpTest, TransportSequenceNumber) {
philipel5ef2bc12017-02-21 07:28:31 -0800677 RampUpTester test(1, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefanff2ebf52017-03-13 01:27:03 -0700678 false, false, false);
stefane74eef12016-01-08 06:47:13 -0800679 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200680}
681
682TEST_F(RampUpTest, TransportSequenceNumberSimulcast) {
philipel5ef2bc12017-02-21 07:28:31 -0800683 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefanff2ebf52017-03-13 01:27:03 -0700684 false, false, false);
stefane74eef12016-01-08 06:47:13 -0800685 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200686}
687
stefan38d8b3c2017-01-09 04:19:24 -0800688TEST_F(RampUpTest, TransportSequenceNumberSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800689 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefan5a2c5062017-01-27 06:43:18 -0800690 true, true, true);
691 RunBaseTest(&test);
692}
693
Niels Möllercd2e1052018-11-08 10:23:13 +0100694TEST_F(RampUpTest, AudioTransportSequenceNumber) {
philipel5ef2bc12017-02-21 07:28:31 -0800695 RampUpTester test(0, 1, 0, 300000, 10000,
stefan5a2c5062017-01-27 06:43:18 -0800696 RtpExtension::kTransportSequenceNumberUri, false, false,
697 false);
stefane74eef12016-01-08 06:47:13 -0800698 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200699}
pbos@webrtc.org744fbc72013-09-10 09:26:25 +0000700} // namespace webrtc