blob: 9735421f30ec51cb0ebc5f61e56fced0525de60b [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
Artem Titov4e199e92018-08-20 13:30:39 +020013#include "call/fake_network_pipe.h"
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020014#include "logging/rtc_event_log/output/rtc_event_log_output_file.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020015#include "rtc_base/checks.h"
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020016#include "rtc_base/flags.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020017#include "rtc_base/logging.h"
18#include "rtc_base/platform_thread.h"
Jonas Olsson0a713b62018-04-04 15:49:32 +020019#include "rtc_base/stringencode.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020020#include "test/encoder_settings.h"
21#include "test/gtest.h"
22#include "test/testsupport/perf_test.h"
pbos@webrtc.org744fbc72013-09-10 09:26:25 +000023
24namespace webrtc {
pbos@webrtc.org29023282013-09-11 10:14:56 +000025namespace {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000026
Stefan Holmer723dff12015-10-05 14:59:41 +020027static const int64_t kPollIntervalMs = 20;
philipel5ef2bc12017-02-21 07:28:31 -080028static const int kExpectedHighVideoBitrateBps = 80000;
stefandb752f92016-12-05 08:23:40 -080029static const int kExpectedHighAudioBitrateBps = 30000;
30static const int kLowBandwidthLimitBps = 20000;
Sebastian Jansson12fb1702018-02-23 11:34:18 +010031// Set target detected bitrate to slightly larger than the target bitrate to
32// avoid flakiness.
33static const int kLowBitrateMarginBps = 2000;
pbos@webrtc.org29023282013-09-11 10:14:56 +000034
stefanff483612015-12-21 03:14:00 -080035std::vector<uint32_t> GenerateSsrcs(size_t num_streams, uint32_t ssrc_offset) {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000036 std::vector<uint32_t> ssrcs;
37 for (size_t i = 0; i != num_streams; ++i)
38 ssrcs.push_back(static_cast<uint32_t>(ssrc_offset + i));
39 return ssrcs;
40}
mflodman@webrtc.orgeb16b812014-06-16 08:57:39 +000041} // namespace
henrik.lundin@webrtc.org845862f2014-03-06 07:19:28 +000042
Mirko Bonadei2dfa9982018-10-18 11:35:32 +020043WEBRTC_DEFINE_string(ramp_dump_name,
44 "",
45 "Filename for dumped received RTP stream.");
Sebastian Janssonf5e767d2018-10-15 13:24:31 +020046
stefanff483612015-12-21 03:14:00 -080047RampUpTester::RampUpTester(size_t num_video_streams,
48 size_t num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -080049 size_t num_flexfec_streams,
stefan4fbd1452015-09-28 03:57:14 -070050 unsigned int start_bitrate_bps,
stefan5a2c5062017-01-27 06:43:18 -080051 int64_t min_run_time_ms,
stefan4fbd1452015-09-28 03:57:14 -070052 const std::string& extension_type,
53 bool rtx,
stefan5a2c5062017-01-27 06:43:18 -080054 bool red,
55 bool report_perf_stats)
stefan4fbd1452015-09-28 03:57:14 -070056 : EndToEndTest(test::CallTest::kLongTimeoutMs),
stefan4fbd1452015-09-28 03:57:14 -070057 clock_(Clock::GetRealTimeClock()),
stefanff483612015-12-21 03:14:00 -080058 num_video_streams_(num_video_streams),
59 num_audio_streams_(num_audio_streams),
philipel5ef2bc12017-02-21 07:28:31 -080060 num_flexfec_streams_(num_flexfec_streams),
stefan4fbd1452015-09-28 03:57:14 -070061 rtx_(rtx),
62 red_(red),
stefan45b5fe52017-03-09 06:27:02 -080063 report_perf_stats_(report_perf_stats),
mflodman86cc6ff2016-07-26 04:44:06 -070064 sender_call_(nullptr),
stefan4fbd1452015-09-28 03:57:14 -070065 send_stream_(nullptr),
sprang4847ae62017-06-27 07:06:52 -070066 send_transport_(nullptr),
Artem Titov631cafa2018-08-21 21:01:00 +020067 send_simulated_network_(nullptr),
stefan4fbd1452015-09-28 03:57:14 -070068 start_bitrate_bps_(start_bitrate_bps),
stefan5a2c5062017-01-27 06:43:18 -080069 min_run_time_ms_(min_run_time_ms),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +000070 expected_bitrate_bps_(0),
Erik Språngf3a7c9d2015-10-05 14:03:22 +020071 test_start_ms_(-1),
stefan4fbd1452015-09-28 03:57:14 -070072 ramp_up_finished_ms_(-1),
73 extension_type_(extension_type),
stefanff483612015-12-21 03:14:00 -080074 video_ssrcs_(GenerateSsrcs(num_video_streams_, 100)),
75 video_rtx_ssrcs_(GenerateSsrcs(num_video_streams_, 200)),
76 audio_ssrcs_(GenerateSsrcs(num_audio_streams_, 300)),
Peter Boström8c38e8b2015-11-26 17:45:47 +010077 poller_thread_(&BitrateStatsPollingThread,
78 this,
mflodman86cc6ff2016-07-26 04:44:06 -070079 "BitrateStatsPollingThread") {
philipel5ef2bc12017-02-21 07:28:31 -080080 if (red_)
81 EXPECT_EQ(0u, num_flexfec_streams_);
Stefan Holmerff2a6352016-01-14 10:00:21 +010082 EXPECT_LE(num_audio_streams_, 1u);
stefan4fbd1452015-09-28 03:57:14 -070083}
84
Yves Gerey665174f2018-06-19 15:03:05 +020085RampUpTester::~RampUpTester() {}
stefan4fbd1452015-09-28 03:57:14 -070086
Niels Möllerde8e6e62018-11-13 15:10:33 +010087void RampUpTester::ModifySenderBitrateConfig(
88 BitrateConstraints* bitrate_config) {
stefan4fbd1452015-09-28 03:57:14 -070089 if (start_bitrate_bps_ != 0) {
Niels Möllerde8e6e62018-11-13 15:10:33 +010090 bitrate_config->start_bitrate_bps = start_bitrate_bps_;
stefan4fbd1452015-09-28 03:57:14 -070091 }
Niels Möllerde8e6e62018-11-13 15:10:33 +010092 bitrate_config->min_bitrate_bps = 10000;
stefan4fbd1452015-09-28 03:57:14 -070093}
94
stefanff483612015-12-21 03:14:00 -080095void RampUpTester::OnVideoStreamsCreated(
stefan4fbd1452015-09-28 03:57:14 -070096 VideoSendStream* send_stream,
97 const std::vector<VideoReceiveStream*>& receive_streams) {
98 send_stream_ = send_stream;
99}
100
eladalon413ee9a2017-08-22 04:02:52 -0700101test::PacketTransport* RampUpTester::CreateSendTransport(
102 test::SingleThreadedTaskQueueForTesting* task_queue,
103 Call* sender_call) {
Artem Titov631cafa2018-08-21 21:01:00 +0200104 auto network = absl::make_unique<SimulatedNetwork>(forward_transport_config_);
105 send_simulated_network_ = network.get();
minyue20c84cc2017-04-10 16:57:57 -0700106 send_transport_ = new test::PacketTransport(
eladalon413ee9a2017-08-22 04:02:52 -0700107 task_queue, sender_call, this, test::PacketTransport::kSender,
Artem Titov4e199e92018-08-20 13:30:39 +0200108 test::CallTest::payload_type_map_,
Artem Titov631cafa2018-08-21 21:01:00 +0200109 absl::make_unique<FakeNetworkPipe>(Clock::GetRealTimeClock(),
110 std::move(network)));
stefane74eef12016-01-08 06:47:13 -0800111 return send_transport_;
stefanf116bd02015-10-27 08:29:42 -0700112}
113
Stefan Holmerd20e6512016-01-12 15:51:22 +0100114size_t RampUpTester::GetNumVideoStreams() const {
115 return num_video_streams_;
116}
117
Stefan Holmerff2a6352016-01-14 10:00:21 +0100118size_t RampUpTester::GetNumAudioStreams() const {
119 return num_audio_streams_;
120}
121
philipel5ef2bc12017-02-21 07:28:31 -0800122size_t RampUpTester::GetNumFlexfecStreams() const {
123 return num_flexfec_streams_;
124}
125
perkjfa10b552016-10-02 23:45:26 -0700126class RampUpTester::VideoStreamFactory
127 : public VideoEncoderConfig::VideoStreamFactoryInterface {
128 public:
129 VideoStreamFactory() {}
130
131 private:
132 std::vector<VideoStream> CreateEncoderStreams(
133 int width,
134 int height,
135 const VideoEncoderConfig& encoder_config) override {
136 std::vector<VideoStream> streams =
137 test::CreateVideoStreams(width, height, encoder_config);
138 if (encoder_config.number_of_streams == 1) {
139 streams[0].target_bitrate_bps = streams[0].max_bitrate_bps = 2000000;
140 }
141 return streams;
142 }
143};
144
stefanff483612015-12-21 03:14:00 -0800145void RampUpTester::ModifyVideoConfigs(
stefan4fbd1452015-09-28 03:57:14 -0700146 VideoSendStream::Config* send_config,
147 std::vector<VideoReceiveStream::Config>* receive_configs,
148 VideoEncoderConfig* encoder_config) {
149 send_config->suspend_below_min_bitrate = true;
perkjfa10b552016-10-02 23:45:26 -0700150 encoder_config->number_of_streams = num_video_streams_;
151 encoder_config->max_bitrate_bps = 2000000;
152 encoder_config->video_stream_factory =
153 new rtc::RefCountedObject<RampUpTester::VideoStreamFactory>();
stefanff483612015-12-21 03:14:00 -0800154 if (num_video_streams_ == 1) {
stefan4fbd1452015-09-28 03:57:14 -0700155 // For single stream rampup until 1mbps
156 expected_bitrate_bps_ = kSingleStreamTargetBps;
157 } else {
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200158 // To ensure simulcast rate allocation.
159 send_config->rtp.payload_name = "VP8";
160 encoder_config->codec_type = kVideoCodecVP8;
perkjfa10b552016-10-02 23:45:26 -0700161 std::vector<VideoStream> streams = test::CreateVideoStreams(
162 test::CallTest::kDefaultWidth, test::CallTest::kDefaultHeight,
163 *encoder_config);
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200164 // For multi stream rampup until all streams are being sent. That means
165 // enough bitrate to send all the target streams plus the min bitrate of
166 // the last one.
perkjfa10b552016-10-02 23:45:26 -0700167 expected_bitrate_bps_ = streams.back().min_bitrate_bps;
168 for (size_t i = 0; i < streams.size() - 1; ++i) {
169 expected_bitrate_bps_ += streams[i].target_bitrate_bps;
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000170 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000171 }
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000172
stefan4fbd1452015-09-28 03:57:14 -0700173 send_config->rtp.extensions.clear();
174
175 bool remb;
stefan43edf0f2015-11-20 18:05:48 -0800176 bool transport_cc;
isheriff6f8d6862016-05-26 11:24:55 -0700177 if (extension_type_ == RtpExtension::kAbsSendTimeUri) {
stefan4fbd1452015-09-28 03:57:14 -0700178 remb = true;
stefan43edf0f2015-11-20 18:05:48 -0800179 transport_cc = false;
stefan4fbd1452015-09-28 03:57:14 -0700180 send_config->rtp.extensions.push_back(
181 RtpExtension(extension_type_.c_str(), kAbsSendTimeExtensionId));
isheriff6f8d6862016-05-26 11:24:55 -0700182 } else if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
stefan4fbd1452015-09-28 03:57:14 -0700183 remb = false;
stefan43edf0f2015-11-20 18:05:48 -0800184 transport_cc = true;
stefan4fbd1452015-09-28 03:57:14 -0700185 send_config->rtp.extensions.push_back(RtpExtension(
186 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000187 } else {
stefan4fbd1452015-09-28 03:57:14 -0700188 remb = true;
stefan43edf0f2015-11-20 18:05:48 -0800189 transport_cc = false;
stefan4fbd1452015-09-28 03:57:14 -0700190 send_config->rtp.extensions.push_back(RtpExtension(
191 extension_type_.c_str(), kTransmissionTimeOffsetExtensionId));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000192 }
stefan4fbd1452015-09-28 03:57:14 -0700193
194 send_config->rtp.nack.rtp_history_ms = test::CallTest::kNackRtpHistoryMs;
stefanff483612015-12-21 03:14:00 -0800195 send_config->rtp.ssrcs = video_ssrcs_;
stefan4fbd1452015-09-28 03:57:14 -0700196 if (rtx_) {
197 send_config->rtp.rtx.payload_type = test::CallTest::kSendRtxPayloadType;
stefanff483612015-12-21 03:14:00 -0800198 send_config->rtp.rtx.ssrcs = video_rtx_ssrcs_;
stefan4fbd1452015-09-28 03:57:14 -0700199 }
200 if (red_) {
brandtrb5f2c3f2016-10-04 23:28:39 -0700201 send_config->rtp.ulpfec.ulpfec_payload_type =
stefan4fbd1452015-09-28 03:57:14 -0700202 test::CallTest::kUlpfecPayloadType;
brandtrb5f2c3f2016-10-04 23:28:39 -0700203 send_config->rtp.ulpfec.red_payload_type = test::CallTest::kRedPayloadType;
brandtrfbfb5362016-11-17 04:18:37 -0800204 if (rtx_) {
205 send_config->rtp.ulpfec.red_rtx_payload_type =
206 test::CallTest::kRtxRedPayloadType;
207 }
stefan4fbd1452015-09-28 03:57:14 -0700208 }
209
210 size_t i = 0;
211 for (VideoReceiveStream::Config& recv_config : *receive_configs) {
212 recv_config.rtp.remb = remb;
stefan43edf0f2015-11-20 18:05:48 -0800213 recv_config.rtp.transport_cc = transport_cc;
stefan4fbd1452015-09-28 03:57:14 -0700214 recv_config.rtp.extensions = send_config->rtp.extensions;
Ilya Nikolaevskiyb0588e62018-08-27 14:12:27 +0200215 recv_config.decoders.reserve(1);
216 recv_config.decoders[0].payload_type = send_config->rtp.payload_type;
Niels Möllercb7e1d22018-09-11 15:56:04 +0200217 recv_config.decoders[0].video_format =
218 SdpVideoFormat(send_config->rtp.payload_name);
stefan4fbd1452015-09-28 03:57:14 -0700219
stefanff483612015-12-21 03:14:00 -0800220 recv_config.rtp.remote_ssrc = video_ssrcs_[i];
stefan4fbd1452015-09-28 03:57:14 -0700221 recv_config.rtp.nack.rtp_history_ms = send_config->rtp.nack.rtp_history_ms;
222
223 if (red_) {
nisse3b3622f2017-09-26 02:49:21 -0700224 recv_config.rtp.red_payload_type =
brandtrb5f2c3f2016-10-04 23:28:39 -0700225 send_config->rtp.ulpfec.red_payload_type;
nisse3b3622f2017-09-26 02:49:21 -0700226 recv_config.rtp.ulpfec_payload_type =
brandtrb5f2c3f2016-10-04 23:28:39 -0700227 send_config->rtp.ulpfec.ulpfec_payload_type;
brandtrfbfb5362016-11-17 04:18:37 -0800228 if (rtx_) {
nisseca5706d2017-09-11 02:32:16 -0700229 recv_config.rtp.rtx_associated_payload_types
230 [send_config->rtp.ulpfec.red_rtx_payload_type] =
231 send_config->rtp.ulpfec.red_payload_type;
brandtrfbfb5362016-11-17 04:18:37 -0800232 }
stefan4fbd1452015-09-28 03:57:14 -0700233 }
234
235 if (rtx_) {
brandtr14742122017-01-27 04:53:07 -0800236 recv_config.rtp.rtx_ssrc = video_rtx_ssrcs_[i];
237 recv_config.rtp
nisse26e3abb2017-08-25 04:44:25 -0700238 .rtx_associated_payload_types[send_config->rtp.rtx.payload_type] =
Niels Möller259a4972018-04-05 15:36:51 +0200239 send_config->rtp.payload_type;
stefan4fbd1452015-09-28 03:57:14 -0700240 }
241 ++i;
242 }
philipel5ef2bc12017-02-21 07:28:31 -0800243
244 RTC_DCHECK_LE(num_flexfec_streams_, 1);
245 if (num_flexfec_streams_ == 1) {
246 send_config->rtp.flexfec.payload_type = test::CallTest::kFlexfecPayloadType;
247 send_config->rtp.flexfec.ssrc = test::CallTest::kFlexfecSendSsrc;
248 send_config->rtp.flexfec.protected_media_ssrcs = {video_ssrcs_[0]};
249 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000250}
251
Stefan Holmerff2a6352016-01-14 10:00:21 +0100252void RampUpTester::ModifyAudioConfigs(
253 AudioSendStream::Config* send_config,
254 std::vector<AudioReceiveStream::Config>* receive_configs) {
255 if (num_audio_streams_ == 0)
256 return;
257
isheriff6f8d6862016-05-26 11:24:55 -0700258 EXPECT_NE(RtpExtension::kTimestampOffsetUri, extension_type_)
Stefan Holmerff2a6352016-01-14 10:00:21 +0100259 << "Audio BWE not supported with toffset.";
philipel5ef2bc12017-02-21 07:28:31 -0800260 EXPECT_NE(RtpExtension::kAbsSendTimeUri, extension_type_)
261 << "Audio BWE not supported with abs-send-time.";
Stefan Holmerff2a6352016-01-14 10:00:21 +0100262
263 send_config->rtp.ssrc = audio_ssrcs_[0];
264 send_config->rtp.extensions.clear();
265
minyue10cbb462016-11-07 09:29:22 -0800266 send_config->min_bitrate_bps = 6000;
267 send_config->max_bitrate_bps = 60000;
mflodman86cc6ff2016-07-26 04:44:06 -0700268
Stefan Holmerff2a6352016-01-14 10:00:21 +0100269 bool transport_cc = false;
philipel5ef2bc12017-02-21 07:28:31 -0800270 if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
Stefan Holmerff2a6352016-01-14 10:00:21 +0100271 transport_cc = true;
272 send_config->rtp.extensions.push_back(RtpExtension(
273 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
274 }
275
276 for (AudioReceiveStream::Config& recv_config : *receive_configs) {
Stefan Holmerff2a6352016-01-14 10:00:21 +0100277 recv_config.rtp.transport_cc = transport_cc;
278 recv_config.rtp.extensions = send_config->rtp.extensions;
279 recv_config.rtp.remote_ssrc = send_config->rtp.ssrc;
280 }
281}
282
philipel5ef2bc12017-02-21 07:28:31 -0800283void RampUpTester::ModifyFlexfecConfigs(
284 std::vector<FlexfecReceiveStream::Config>* receive_configs) {
285 if (num_flexfec_streams_ == 0)
286 return;
287 RTC_DCHECK_EQ(1, num_flexfec_streams_);
288 (*receive_configs)[0].payload_type = test::CallTest::kFlexfecPayloadType;
289 (*receive_configs)[0].remote_ssrc = test::CallTest::kFlexfecSendSsrc;
290 (*receive_configs)[0].protected_media_ssrcs = {video_ssrcs_[0]};
291 (*receive_configs)[0].local_ssrc = video_ssrcs_[0];
292 if (extension_type_ == RtpExtension::kAbsSendTimeUri) {
293 (*receive_configs)[0].transport_cc = false;
294 (*receive_configs)[0].rtp_header_extensions.push_back(
295 RtpExtension(extension_type_.c_str(), kAbsSendTimeExtensionId));
296 } else if (extension_type_ == RtpExtension::kTransportSequenceNumberUri) {
297 (*receive_configs)[0].transport_cc = true;
298 (*receive_configs)[0].rtp_header_extensions.push_back(RtpExtension(
299 extension_type_.c_str(), kTransportSequenceNumberExtensionId));
300 }
301}
302
stefan4fbd1452015-09-28 03:57:14 -0700303void RampUpTester::OnCallsCreated(Call* sender_call, Call* receiver_call) {
304 sender_call_ = sender_call;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000305}
306
tommi0f8b4032017-02-22 11:22:05 -0800307void RampUpTester::BitrateStatsPollingThread(void* obj) {
308 static_cast<RampUpTester*>(obj)->PollStats();
pbos@webrtc.org32452b22014-10-22 12:15:24 +0000309}
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000310
tommi0f8b4032017-02-22 11:22:05 -0800311void RampUpTester::PollStats() {
312 do {
313 if (sender_call_) {
314 Call::Stats stats = sender_call_->GetStats();
stefan4fbd1452015-09-28 03:57:14 -0700315
tommi0f8b4032017-02-22 11:22:05 -0800316 EXPECT_GE(expected_bitrate_bps_, 0);
317 if (stats.send_bandwidth_bps >= expected_bitrate_bps_ &&
318 (min_run_time_ms_ == -1 ||
319 clock_->TimeInMilliseconds() - test_start_ms_ >= min_run_time_ms_)) {
320 ramp_up_finished_ms_ = clock_->TimeInMilliseconds();
321 observation_complete_.Set();
322 }
stefan4fbd1452015-09-28 03:57:14 -0700323 }
tommi0f8b4032017-02-22 11:22:05 -0800324 } while (!stop_event_.Wait(kPollIntervalMs));
Erik Språng468e62a2015-07-06 10:50:47 +0200325}
326
stefan4fbd1452015-09-28 03:57:14 -0700327void RampUpTester::ReportResult(const std::string& measurement,
328 size_t value,
329 const std::string& units) const {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000330 webrtc::test::PrintResult(
331 measurement, "",
stefanff483612015-12-21 03:14:00 -0800332 ::testing::UnitTest::GetInstance()->current_test_info()->name(), value,
333 units, false);
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000334}
335
stefan092508a2015-09-29 02:26:42 -0700336void RampUpTester::AccumulateStats(const VideoSendStream::StreamStats& stream,
337 size_t* total_packets_sent,
338 size_t* total_sent,
339 size_t* padding_sent,
340 size_t* media_sent) const {
stefan4fbd1452015-09-28 03:57:14 -0700341 *total_packets_sent += stream.rtp_stats.transmitted.packets +
342 stream.rtp_stats.retransmitted.packets +
343 stream.rtp_stats.fec.packets;
344 *total_sent += stream.rtp_stats.transmitted.TotalBytes() +
345 stream.rtp_stats.retransmitted.TotalBytes() +
346 stream.rtp_stats.fec.TotalBytes();
347 *padding_sent += stream.rtp_stats.transmitted.padding_bytes +
348 stream.rtp_stats.retransmitted.padding_bytes +
349 stream.rtp_stats.fec.padding_bytes;
350 *media_sent += stream.rtp_stats.MediaPayloadBytes();
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000351}
352
stefan4fbd1452015-09-28 03:57:14 -0700353void RampUpTester::TriggerTestDone() {
Erik Språngf3a7c9d2015-10-05 14:03:22 +0200354 RTC_DCHECK_GE(test_start_ms_, 0);
355
Stefan Holmerff2a6352016-01-14 10:00:21 +0100356 // TODO(holmer): Add audio send stats here too when those APIs are available.
mflodman86cc6ff2016-07-26 04:44:06 -0700357 if (!send_stream_)
358 return;
359
stefan4fbd1452015-09-28 03:57:14 -0700360 VideoSendStream::Stats send_stats = send_stream_->GetStats();
361
362 size_t total_packets_sent = 0;
363 size_t total_sent = 0;
364 size_t padding_sent = 0;
365 size_t media_sent = 0;
stefanff483612015-12-21 03:14:00 -0800366 for (uint32_t ssrc : video_ssrcs_) {
stefan092508a2015-09-29 02:26:42 -0700367 AccumulateStats(send_stats.substreams[ssrc], &total_packets_sent,
368 &total_sent, &padding_sent, &media_sent);
stefan4fbd1452015-09-28 03:57:14 -0700369 }
370
371 size_t rtx_total_packets_sent = 0;
372 size_t rtx_total_sent = 0;
373 size_t rtx_padding_sent = 0;
374 size_t rtx_media_sent = 0;
stefanff483612015-12-21 03:14:00 -0800375 for (uint32_t rtx_ssrc : video_rtx_ssrcs_) {
stefan092508a2015-09-29 02:26:42 -0700376 AccumulateStats(send_stats.substreams[rtx_ssrc], &rtx_total_packets_sent,
377 &rtx_total_sent, &rtx_padding_sent, &rtx_media_sent);
stefan4fbd1452015-09-28 03:57:14 -0700378 }
379
stefan5a2c5062017-01-27 06:43:18 -0800380 if (report_perf_stats_) {
stefan5a2c5062017-01-27 06:43:18 -0800381 ReportResult("ramp-up-media-sent", media_sent, "bytes");
382 ReportResult("ramp-up-padding-sent", padding_sent, "bytes");
stefan5a2c5062017-01-27 06:43:18 -0800383 ReportResult("ramp-up-rtx-media-sent", rtx_media_sent, "bytes");
384 ReportResult("ramp-up-rtx-padding-sent", rtx_padding_sent, "bytes");
385 if (ramp_up_finished_ms_ >= 0) {
386 ReportResult("ramp-up-time", ramp_up_finished_ms_ - test_start_ms_,
387 "milliseconds");
388 }
389 ReportResult("ramp-up-average-network-latency",
390 send_transport_->GetAverageDelayMs(), "milliseconds");
stefan4fbd1452015-09-28 03:57:14 -0700391 }
392}
393
394void RampUpTester::PerformTest() {
Erik Språngf3a7c9d2015-10-05 14:03:22 +0200395 test_start_ms_ = clock_->TimeInMilliseconds();
Peter Boström8c38e8b2015-11-26 17:45:47 +0100396 poller_thread_.Start();
Peter Boström5811a392015-12-10 13:02:50 +0100397 EXPECT_TRUE(Wait()) << "Timed out while waiting for ramp-up to complete.";
stefan4fbd1452015-09-28 03:57:14 -0700398 TriggerTestDone();
tommi0f8b4032017-02-22 11:22:05 -0800399 stop_event_.Set();
Peter Boström8c38e8b2015-11-26 17:45:47 +0100400 poller_thread_.Stop();
stefan4fbd1452015-09-28 03:57:14 -0700401}
402
Stefan Holmerff2a6352016-01-14 10:00:21 +0100403RampUpDownUpTester::RampUpDownUpTester(size_t num_video_streams,
404 size_t num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -0800405 size_t num_flexfec_streams,
stefan4fbd1452015-09-28 03:57:14 -0700406 unsigned int start_bitrate_bps,
407 const std::string& extension_type,
408 bool rtx,
philipel5ef2bc12017-02-21 07:28:31 -0800409 bool red,
stefan45b5fe52017-03-09 06:27:02 -0800410 const std::vector<int>& loss_rates,
411 bool report_perf_stats)
Stefan Holmerff2a6352016-01-14 10:00:21 +0100412 : RampUpTester(num_video_streams,
413 num_audio_streams,
philipel5ef2bc12017-02-21 07:28:31 -0800414 num_flexfec_streams,
Stefan Holmerff2a6352016-01-14 10:00:21 +0100415 start_bitrate_bps,
stefan5a2c5062017-01-27 06:43:18 -0800416 0,
Stefan Holmerff2a6352016-01-14 10:00:21 +0100417 extension_type,
418 rtx,
stefan5a2c5062017-01-27 06:43:18 -0800419 red,
stefan45b5fe52017-03-09 06:27:02 -0800420 report_perf_stats),
stefan76d9c9c2017-04-01 06:51:09 -0700421 link_rates_({4 * GetExpectedHighBitrate() / (3 * 1000),
422 kLowBandwidthLimitBps / 1000,
423 4 * GetExpectedHighBitrate() / (3 * 1000), 0}),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000424 test_state_(kFirstRampup),
philipel5ef2bc12017-02-21 07:28:31 -0800425 next_state_(kTransitionToNextState),
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000426 state_start_ms_(clock_->TimeInMilliseconds()),
stefan4fbd1452015-09-28 03:57:14 -0700427 interval_start_ms_(clock_->TimeInMilliseconds()),
philipel5ef2bc12017-02-21 07:28:31 -0800428 sent_bytes_(0),
429 loss_rates_(loss_rates) {
430 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_];
431 forward_transport_config_.queue_delay_ms = 100;
432 forward_transport_config_.loss_percent = loss_rates_[test_state_];
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000433}
434
stefan4fbd1452015-09-28 03:57:14 -0700435RampUpDownUpTester::~RampUpDownUpTester() {}
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000436
tommi0f8b4032017-02-22 11:22:05 -0800437void RampUpDownUpTester::PollStats() {
438 do {
Alex Narest78609d52017-10-20 10:37:47 +0200439 int transmit_bitrate_bps = 0;
440 bool suspended = false;
441 if (num_video_streams_ > 0) {
tommi0f8b4032017-02-22 11:22:05 -0800442 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats();
tommi0f8b4032017-02-22 11:22:05 -0800443 for (auto it : stats.substreams) {
444 transmit_bitrate_bps += it.second.total_bitrate_bps;
445 }
Alex Narest78609d52017-10-20 10:37:47 +0200446 suspended = stats.suspended;
447 }
448 if (num_audio_streams_ > 0 && sender_call_ != nullptr) {
tommi0f8b4032017-02-22 11:22:05 -0800449 // An audio send stream doesn't have bitrate stats, so the call send BW is
450 // currently used instead.
Alex Narest78609d52017-10-20 10:37:47 +0200451 transmit_bitrate_bps = sender_call_->GetStats().send_bandwidth_bps;
mflodman@webrtc.orgeb16b812014-06-16 08:57:39 +0000452 }
Alex Narest78609d52017-10-20 10:37:47 +0200453 EvolveTestState(transmit_bitrate_bps, suspended);
tommi0f8b4032017-02-22 11:22:05 -0800454 } while (!stop_event_.Wait(kPollIntervalMs));
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000455}
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000456
Niels Möllerde8e6e62018-11-13 15:10:33 +0100457void RampUpDownUpTester::ModifyReceiverBitrateConfig(
458 BitrateConstraints* bitrate_config) {
459 bitrate_config->min_bitrate_bps = 10000;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000460}
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +0000461
stefan4fbd1452015-09-28 03:57:14 -0700462std::string RampUpDownUpTester::GetModifierString() const {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000463 std::string str("_");
stefanff483612015-12-21 03:14:00 -0800464 if (num_video_streams_ > 0) {
Jonas Olsson0a713b62018-04-04 15:49:32 +0200465 str += rtc::ToString(num_video_streams_);
stefanff483612015-12-21 03:14:00 -0800466 str += "stream";
467 str += (num_video_streams_ > 1 ? "s" : "");
468 str += "_";
469 }
470 if (num_audio_streams_ > 0) {
Jonas Olsson0a713b62018-04-04 15:49:32 +0200471 str += rtc::ToString(num_audio_streams_);
stefanff483612015-12-21 03:14:00 -0800472 str += "stream";
473 str += (num_audio_streams_ > 1 ? "s" : "");
474 str += "_";
475 }
stefan4fbd1452015-09-28 03:57:14 -0700476 str += (rtx_ ? "" : "no");
Edward Lemurdd3987f2018-01-04 19:44:54 +0100477 str += "rtx_";
478 str += (red_ ? "" : "no");
479 str += "red";
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000480 return str;
481}
andresp@webrtc.orgc1480792014-03-20 03:23:55 +0000482
stefandb752f92016-12-05 08:23:40 -0800483int RampUpDownUpTester::GetExpectedHighBitrate() const {
stefan38d8b3c2017-01-09 04:19:24 -0800484 int expected_bitrate_bps = 0;
485 if (num_audio_streams_ > 0)
486 expected_bitrate_bps += kExpectedHighAudioBitrateBps;
487 if (num_video_streams_ > 0)
488 expected_bitrate_bps += kExpectedHighVideoBitrateBps;
489 return expected_bitrate_bps;
490}
491
philipel5ef2bc12017-02-21 07:28:31 -0800492size_t RampUpDownUpTester::GetFecBytes() const {
493 size_t flex_fec_bytes = 0;
494 if (num_flexfec_streams_ > 0) {
495 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats();
496 for (const auto& kv : stats.substreams)
497 flex_fec_bytes += kv.second.rtp_stats.fec.TotalBytes();
498 }
499 return flex_fec_bytes;
500}
501
502bool RampUpDownUpTester::ExpectingFec() const {
503 return num_flexfec_streams_ > 0 && forward_transport_config_.loss_percent > 0;
504}
505
stefan4fbd1452015-09-28 03:57:14 -0700506void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) {
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000507 int64_t now = clock_->TimeInMilliseconds();
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000508 switch (test_state_) {
philipel5ef2bc12017-02-21 07:28:31 -0800509 case kFirstRampup:
stefan4fbd1452015-09-28 03:57:14 -0700510 EXPECT_FALSE(suspended);
stefandb752f92016-12-05 08:23:40 -0800511 if (bitrate_bps >= GetExpectedHighBitrate()) {
stefan45b5fe52017-03-09 06:27:02 -0800512 if (report_perf_stats_) {
513 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
514 "first_rampup", now - state_start_ms_, "ms",
515 false);
516 }
philipel5ef2bc12017-02-21 07:28:31 -0800517 // Apply loss during the transition between states if FEC is enabled.
518 forward_transport_config_.loss_percent = loss_rates_[test_state_];
519 test_state_ = kTransitionToNextState;
520 next_state_ = kLowRate;
andresp@webrtc.orgc1480792014-03-20 03:23:55 +0000521 }
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000522 break;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000523 case kLowRate: {
mflodman86cc6ff2016-07-26 04:44:06 -0700524 // Audio streams are never suspended.
525 bool check_suspend_state = num_video_streams_ > 0;
Sebastian Jansson12fb1702018-02-23 11:34:18 +0100526 if (bitrate_bps < kLowBandwidthLimitBps + kLowBitrateMarginBps &&
mflodman86cc6ff2016-07-26 04:44:06 -0700527 suspended == check_suspend_state) {
stefan45b5fe52017-03-09 06:27:02 -0800528 if (report_perf_stats_) {
529 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
530 "rampdown", now - state_start_ms_, "ms",
531 false);
532 }
philipel5ef2bc12017-02-21 07:28:31 -0800533 // Apply loss during the transition between states if FEC is enabled.
534 forward_transport_config_.loss_percent = loss_rates_[test_state_];
535 test_state_ = kTransitionToNextState;
536 next_state_ = kSecondRampup;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000537 }
538 break;
539 }
philipel5ef2bc12017-02-21 07:28:31 -0800540 case kSecondRampup:
stefandb752f92016-12-05 08:23:40 -0800541 if (bitrate_bps >= GetExpectedHighBitrate() && !suspended) {
stefan45b5fe52017-03-09 06:27:02 -0800542 if (report_perf_stats_) {
543 webrtc::test::PrintResult("ramp_up_down_up", GetModifierString(),
544 "second_rampup", now - state_start_ms_,
545 "ms", false);
546 ReportResult("ramp-up-down-up-average-network-latency",
547 send_transport_->GetAverageDelayMs(), "milliseconds");
548 }
philipel5ef2bc12017-02-21 07:28:31 -0800549 // Apply loss during the transition between states if FEC is enabled.
550 forward_transport_config_.loss_percent = loss_rates_[test_state_];
551 test_state_ = kTransitionToNextState;
552 next_state_ = kTestEnd;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000553 }
554 break;
philipel5ef2bc12017-02-21 07:28:31 -0800555 case kTestEnd:
556 observation_complete_.Set();
557 break;
558 case kTransitionToNextState:
559 if (!ExpectingFec() || GetFecBytes() > 0) {
560 test_state_ = next_state_;
561 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_];
562 // No loss while ramping up and down as it may affect the BWE
563 // negatively, making the test flaky.
564 forward_transport_config_.loss_percent = 0;
565 state_start_ms_ = now;
566 interval_start_ms_ = now;
567 sent_bytes_ = 0;
Artem Titov631cafa2018-08-21 21:01:00 +0200568 send_simulated_network_->SetConfig(forward_transport_config_);
philipel5ef2bc12017-02-21 07:28:31 -0800569 }
570 break;
stefan@webrtc.org3d7da882014-07-08 13:59:46 +0000571 }
572}
pbos@webrtc.orgf577ae92014-03-19 08:43:57 +0000573
stefan4fbd1452015-09-28 03:57:14 -0700574class RampUpTest : public test::CallTest {
Erik Språng6b8d3552015-09-24 15:06:57 +0200575 public:
Sebastian Janssonf5e767d2018-10-15 13:24:31 +0200576 RampUpTest() {
577 std::string dump_name(FLAG_ramp_dump_name);
578 if (!dump_name.empty()) {
579 send_event_log_ = RtcEventLog::Create(RtcEventLog::EncodingType::Legacy);
580 recv_event_log_ = RtcEventLog::Create(RtcEventLog::EncodingType::Legacy);
581 bool event_log_started =
582 send_event_log_->StartLogging(
583 absl::make_unique<RtcEventLogOutputFile>(
584 dump_name + ".send.rtc.dat", RtcEventLog::kUnlimitedOutput),
585 RtcEventLog::kImmediateOutput) &&
586 recv_event_log_->StartLogging(
587 absl::make_unique<RtcEventLogOutputFile>(
588 dump_name + ".recv.rtc.dat", RtcEventLog::kUnlimitedOutput),
589 RtcEventLog::kImmediateOutput);
590 RTC_DCHECK(event_log_started);
591 }
592 }
Erik Språng6b8d3552015-09-24 15:06:57 +0200593};
594
Stefan Holmerff2a6352016-01-14 10:00:21 +0100595static const uint32_t kStartBitrateBps = 60000;
596
stefan38d8b3c2017-01-09 04:19:24 -0800597TEST_F(RampUpTest, UpDownUpAbsSendTimeSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800598 std::vector<int> loss_rates = {0, 0, 0, 0};
599 RampUpDownUpTester test(3, 0, 0, kStartBitrateBps,
stefan45b5fe52017-03-09 06:27:02 -0800600 RtpExtension::kAbsSendTimeUri, true, true, loss_rates,
601 true);
stefane74eef12016-01-08 06:47:13 -0800602 RunBaseTest(&test);
Shao Changbine62202f2015-04-21 20:24:50 +0800603}
Stefan Holmerff2a6352016-01-14 10:00:21 +0100604
Taylor Brandstetterba6b5032018-02-16 09:59:56 -0800605// TODO(bugs.webrtc.org/8878)
606#if defined(WEBRTC_MAC)
607#define MAYBE_UpDownUpTransportSequenceNumberRtx \
608 DISABLED_UpDownUpTransportSequenceNumberRtx
609#else
610#define MAYBE_UpDownUpTransportSequenceNumberRtx \
611 UpDownUpTransportSequenceNumberRtx
612#endif
613TEST_F(RampUpTest, MAYBE_UpDownUpTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800614 std::vector<int> loss_rates = {0, 0, 0, 0};
615 RampUpDownUpTester test(3, 0, 0, kStartBitrateBps,
isheriff6f8d6862016-05-26 11:24:55 -0700616 RtpExtension::kTransportSequenceNumberUri, true,
stefan45b5fe52017-03-09 06:27:02 -0800617 false, loss_rates, true);
philipel5ef2bc12017-02-21 07:28:31 -0800618 RunBaseTest(&test);
619}
620
stefan45b5fe52017-03-09 06:27:02 -0800621// TODO(holmer): Tests which don't report perf stats should be moved to a
622// different executable since they per definition are not perf tests.
Taylor Brandstetter05d98222017-10-10 12:12:53 -0700623// This test is disabled because it crashes on Linux, and is flaky on other
624// platforms. See: crbug.com/webrtc/7919
625TEST_F(RampUpTest, DISABLED_UpDownUpTransportSequenceNumberPacketLoss) {
philipel5ef2bc12017-02-21 07:28:31 -0800626 std::vector<int> loss_rates = {20, 0, 0, 0};
627 RampUpDownUpTester test(1, 0, 1, kStartBitrateBps,
628 RtpExtension::kTransportSequenceNumberUri, true,
stefan45b5fe52017-03-09 06:27:02 -0800629 false, loss_rates, false);
Stefan Holmerff2a6352016-01-14 10:00:21 +0100630 RunBaseTest(&test);
631}
632
Taylor Brandstetterab86e7f2018-02-12 15:16:02 -0800633// TODO(bugs.webrtc.org/8878)
634#if defined(WEBRTC_MAC)
635#define MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx \
636 DISABLED_UpDownUpAudioVideoTransportSequenceNumberRtx
637#else
638#define MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx \
639 UpDownUpAudioVideoTransportSequenceNumberRtx
640#endif
641TEST_F(RampUpTest, MAYBE_UpDownUpAudioVideoTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800642 std::vector<int> loss_rates = {0, 0, 0, 0};
643 RampUpDownUpTester test(3, 1, 0, kStartBitrateBps,
isheriff6f8d6862016-05-26 11:24:55 -0700644 RtpExtension::kTransportSequenceNumberUri, true,
stefanff2ebf52017-03-13 01:27:03 -0700645 false, loss_rates, false);
Stefan Holmerff2a6352016-01-14 10:00:21 +0100646 RunBaseTest(&test);
647}
648
stefan38d8b3c2017-01-09 04:19:24 -0800649TEST_F(RampUpTest, UpDownUpAudioTransportSequenceNumberRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800650 std::vector<int> loss_rates = {0, 0, 0, 0};
651 RampUpDownUpTester test(0, 1, 0, kStartBitrateBps,
mflodman86cc6ff2016-07-26 04:44:06 -0700652 RtpExtension::kTransportSequenceNumberUri, true,
stefanff2ebf52017-03-13 01:27:03 -0700653 false, loss_rates, false);
mflodman86cc6ff2016-07-26 04:44:06 -0700654 RunBaseTest(&test);
655}
656
stefan38d8b3c2017-01-09 04:19:24 -0800657TEST_F(RampUpTest, TOffsetSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800658 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTimestampOffsetUri, true,
659 true, true);
stefan38d8b3c2017-01-09 04:19:24 -0800660 RunBaseTest(&test);
661}
662
663TEST_F(RampUpTest, AbsSendTime) {
philipel5ef2bc12017-02-21 07:28:31 -0800664 RampUpTester test(1, 0, 0, 0, 0, RtpExtension::kAbsSendTimeUri, false, false,
stefanff2ebf52017-03-13 01:27:03 -0700665 false);
stefane74eef12016-01-08 06:47:13 -0800666 RunBaseTest(&test);
pbos@webrtc.org85bd53e2014-12-10 10:36:20 +0000667}
668
stefan38d8b3c2017-01-09 04:19:24 -0800669TEST_F(RampUpTest, AbsSendTimeSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800670 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kAbsSendTimeUri, true, true,
stefan5a2c5062017-01-27 06:43:18 -0800671 true);
stefane74eef12016-01-08 06:47:13 -0800672 RunBaseTest(&test);
pbos@webrtc.org85bd53e2014-12-10 10:36:20 +0000673}
674
stefan38d8b3c2017-01-09 04:19:24 -0800675TEST_F(RampUpTest, TransportSequenceNumber) {
philipel5ef2bc12017-02-21 07:28:31 -0800676 RampUpTester test(1, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefanff2ebf52017-03-13 01:27:03 -0700677 false, false, false);
stefane74eef12016-01-08 06:47:13 -0800678 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200679}
680
681TEST_F(RampUpTest, TransportSequenceNumberSimulcast) {
philipel5ef2bc12017-02-21 07:28:31 -0800682 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefanff2ebf52017-03-13 01:27:03 -0700683 false, false, false);
stefane74eef12016-01-08 06:47:13 -0800684 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200685}
686
stefan38d8b3c2017-01-09 04:19:24 -0800687TEST_F(RampUpTest, TransportSequenceNumberSimulcastRedRtx) {
philipel5ef2bc12017-02-21 07:28:31 -0800688 RampUpTester test(3, 0, 0, 0, 0, RtpExtension::kTransportSequenceNumberUri,
stefan5a2c5062017-01-27 06:43:18 -0800689 true, true, true);
690 RunBaseTest(&test);
691}
692
Niels Möllercd2e1052018-11-08 10:23:13 +0100693TEST_F(RampUpTest, AudioTransportSequenceNumber) {
philipel5ef2bc12017-02-21 07:28:31 -0800694 RampUpTester test(0, 1, 0, 300000, 10000,
stefan5a2c5062017-01-27 06:43:18 -0800695 RtpExtension::kTransportSequenceNumberUri, false, false,
696 false);
stefane74eef12016-01-08 06:47:13 -0800697 RunBaseTest(&test);
Erik Språng6b8d3552015-09-24 15:06:57 +0200698}
pbos@webrtc.org744fbc72013-09-10 09:26:25 +0000699} // namespace webrtc