blob: 345056d993e6c7edae9cc4e0908068b1284303b3 [file] [log] [blame]
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +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 */
Yves Gerey3e707812018-11-28 16:47:49 +010010#include <memory>
11#include <string>
12#include <utility>
13#include <vector>
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000014
Mirko Bonadei2ab97f62019-07-18 13:44:12 +020015#include "absl/flags/flag.h"
16#include "absl/flags/parse.h"
Yves Gerey3e707812018-11-28 16:47:49 +010017#include "absl/types/optional.h"
18#include "api/test/simulated_network.h"
Patrik Höglundd8f3c172018-09-26 14:39:17 +020019#include "api/test/test_dependency_factory.h"
Yves Gerey3e707812018-11-28 16:47:49 +010020#include "api/test/video_quality_test_fixture.h"
21#include "api/video_codecs/sdp_video_format.h"
22#include "api/video_codecs/video_codec.h"
23#include "api/video_codecs/video_encoder_config.h"
Emircan Uysaler0823eec2018-07-13 17:10:00 -070024#include "media/base/vp9_profile.h"
25#include "modules/video_coding/codecs/vp9/include/vp9.h"
Mirko Bonadei17f48782018-09-28 08:51:10 +020026#include "system_wrappers/include/field_trial.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020027#include "test/field_trial.h"
28#include "test/gtest.h"
Rasmus Brandt3c589be2019-03-13 11:32:40 +010029#include "test/testsupport/file_utils.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020030#include "video/video_quality_test.h"
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000031
Mirko Bonadei2ab97f62019-07-18 13:44:12 +020032ABSL_FLAG(std::string,
33 rtc_event_log_name,
34 "",
35 "Filename for rtc event log. Two files "
36 "with \"_send\" and \"_recv\" suffixes will be created.");
37ABSL_FLAG(std::string,
38 rtp_dump_name,
39 "",
40 "Filename for dumped received RTP stream.");
41ABSL_FLAG(std::string,
42 encoded_frame_path,
43 "",
44 "The base path for encoded frame logs. Created files will have "
45 "the form <encoded_frame_path>.<n>.(recv|send.<m>).ivf");
Sebastian Janssonf8518882018-05-31 14:52:59 +020046
47namespace webrtc {
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000048
sprang89c4a7e2017-06-30 13:27:40 -070049namespace {
brandtrdd369c62016-11-16 23:56:57 -080050static const int kFullStackTestDurationSecs = 45;
Erik Språngd3438aa2018-11-08 16:56:43 +010051const char kVp8TrustedRateControllerFieldTrial[] =
52 "WebRTC-LibvpxVp8TrustedRateController/Enabled/";
pbos@webrtc.orgb613b5a2013-12-03 10:13:04 +000053
Patrik Höglundb6b29e02018-06-21 16:58:01 +020054struct ParamsWithLogging : public VideoQualityTest::Params {
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000055 public:
Patrik Höglundb6b29e02018-06-21 16:58:01 +020056 ParamsWithLogging() {
57 // Use these logging flags by default, for everything.
Mirko Bonadei2ab97f62019-07-18 13:44:12 +020058 logging = {absl::GetFlag(FLAGS_rtc_event_log_name),
59 absl::GetFlag(FLAGS_rtp_dump_name),
60 absl::GetFlag(FLAGS_encoded_frame_path)};
Artem Titov75e36472018-10-08 12:28:56 +020061 this->config = BuiltInNetworkBehaviorConfig();
pbos@webrtc.org94015242013-10-16 11:05:37 +000062 }
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000063};
64
Patrik Höglundb6b29e02018-06-21 16:58:01 +020065std::unique_ptr<VideoQualityTestFixtureInterface>
66CreateVideoQualityTestFixture() {
Patrik Höglundd8f3c172018-09-26 14:39:17 +020067 // The components will normally be nullptr (= use defaults), but it's possible
68 // for external test runners to override the list of injected components.
69 auto components = TestDependencyFactory::GetInstance().CreateComponents();
Mirko Bonadei317a1f02019-09-17 17:06:18 +020070 return std::make_unique<VideoQualityTest>(std::move(components));
Patrik Höglundb6b29e02018-06-21 16:58:01 +020071}
72
Erik Språngb6b1cac2018-08-09 16:12:54 +020073// Takes the current active field trials set, and appends some new trials.
74std::string AppendFieldTrials(std::string new_trial_string) {
75 return std::string(field_trial::GetFieldTrialString()) + new_trial_string;
76}
Rasmus Brandt3c589be2019-03-13 11:32:40 +010077
78std::string ClipNameToClipPath(const char* clip_name) {
79 return test::ResourcePath(clip_name, "yuv");
80}
Patrik Höglundb6b29e02018-06-21 16:58:01 +020081} // namespace
82
sprangce4aef12015-11-02 07:23:20 -080083// VideoQualityTest::Params params = {
84// { ... }, // Common.
85// { ... }, // Video-specific settings.
86// { ... }, // Screenshare-specific settings.
87// { ... }, // Analyzer settings.
88// pipe, // FakeNetworkPipe::Config
89// { ... }, // Spatial scalability.
90// logs // bool
91// };
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +000092
Mirko Bonadei8ef57932018-11-16 14:38:03 +010093#if defined(RTC_ENABLE_VP9)
Jeremy Lecontec8850cb2020-09-10 20:46:33 +020094TEST(FullStackTest, Foreman_Cif_Net_Delay_0_0_Plr_0_VP9) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +020095 auto fixture = CreateVideoQualityTestFixture();
96 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -080097 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +010098 foreman_cif.video[0] = {
99 true, 352, 288, 30,
100 700000, 700000, 700000, false,
101 "VP9", 1, 0, 0,
102 false, false, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800103 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_VP9", 0.0, 0.0,
104 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200105 fixture->RunWithAnalyzer(foreman_cif);
asapersson88b0a222016-02-12 13:16:43 -0800106}
107
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200108TEST(GenericDescriptorTest,
109 Foreman_Cif_Delay_50_0_Plr_5_VP9_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200110 auto fixture = CreateVideoQualityTestFixture();
111 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800112 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100113 foreman_cif.video[0] = {
114 true, 352, 288, 30,
115 30000, 500000, 2000000, false,
116 "VP9", 1, 0, 0,
117 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200118 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_VP9_generic_descriptor",
119 0.0, 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200120 foreman_cif.config->loss_percent = 5;
121 foreman_cif.config->queue_delay_ms = 50;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200122 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200123 fixture->RunWithAnalyzer(foreman_cif);
asapersson88b0a222016-02-12 13:16:43 -0800124}
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800125
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200126TEST(FullStackTest, Generator_Net_Delay_0_0_Plr_0_VP9Profile2) {
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700127 // Profile 2 might not be available on some platforms until
128 // https://bugs.chromium.org/p/webm/issues/detail?id=1544 is solved.
129 bool profile_2_is_supported = false;
130 for (const auto& codec : SupportedVP9Codecs()) {
131 if (ParseSdpForVP9Profile(codec.parameters)
132 .value_or(VP9Profile::kProfile0) == VP9Profile::kProfile2) {
133 profile_2_is_supported = true;
134 }
135 }
136 if (!profile_2_is_supported)
137 return;
138 auto fixture = CreateVideoQualityTestFixture();
139
140 SdpVideoFormat::Parameters vp92 = {
141 {kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile2)}};
142 ParamsWithLogging generator;
143 generator.call.send_side_bwe = true;
144 generator.video[0] = {
145 true, 352, 288, 30, 700000, 700000, 700000, false, "VP9",
Stefan Holmer1f7a0082019-01-11 15:39:08 +0100146 1, 0, 0, false, false, true, "GeneratorI010", 0, vp92};
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700147 generator.analyzer = {"generator_net_delay_0_0_plr_0_VP9Profile2", 0.0, 0.0,
148 kFullStackTestDurationSecs};
149 fixture->RunWithAnalyzer(generator);
150}
151
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200152TEST(FullStackTest, Foreman_Cif_Net_Delay_0_0_Plr_0_Multiplex) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200153 auto fixture = CreateVideoQualityTestFixture();
154 ParamsWithLogging foreman_cif;
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800155 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100156 foreman_cif.video[0] = {
157 true, 352, 288, 30,
158 700000, 700000, 700000, false,
159 "multiplex", 1, 0, 0,
160 false, false, false, ClipNameToClipPath("foreman_cif")};
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800161 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_Multiplex", 0.0, 0.0,
162 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200163 fixture->RunWithAnalyzer(foreman_cif);
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800164}
165
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200166TEST(FullStackTest, Generator_Net_Delay_0_0_Plr_0_Multiplex) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200167 auto fixture = CreateVideoQualityTestFixture();
168
169 ParamsWithLogging generator;
Emircan Uysalerf1ff3bd2018-03-12 11:53:21 -0700170 generator.call.send_side_bwe = true;
Stefan Holmer1f7a0082019-01-11 15:39:08 +0100171 generator.video[0] = {
172 true, 352, 288, 30, 700000, 700000, 700000, false,
173 "multiplex", 1, 0, 0, false, false, false, "GeneratorI420A"};
Emircan Uysalerf1ff3bd2018-03-12 11:53:21 -0700174 generator.analyzer = {"generator_net_delay_0_0_plr_0_Multiplex", 0.0, 0.0,
175 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200176 fixture->RunWithAnalyzer(generator);
Emircan Uysaler03e6ec92018-03-09 15:03:26 -0800177}
178
Mirko Bonadei8ef57932018-11-16 14:38:03 +0100179#endif // defined(RTC_ENABLE_VP9)
asapersson88b0a222016-02-12 13:16:43 -0800180
Patrik Höglund11bf2fa2018-04-09 12:20:50 +0200181#if defined(WEBRTC_LINUX)
182// Crashes on the linux trusty perf bot: bugs.webrtc.org/9129.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200183#define MAYBE_Net_Delay_0_0_Plr_0 DISABLED_Net_Delay_0_0_Plr_0
Patrik Höglund11bf2fa2018-04-09 12:20:50 +0200184#else
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200185#define MAYBE_Net_Delay_0_0_Plr_0 Net_Delay_0_0_Plr_0
Patrik Höglund11bf2fa2018-04-09 12:20:50 +0200186#endif
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200187TEST(FullStackTest, MAYBE_Net_Delay_0_0_Plr_0) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200188 auto fixture = CreateVideoQualityTestFixture();
189 ParamsWithLogging paris_qcif;
minyue626bc952016-10-31 05:47:02 -0700190 paris_qcif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100191 paris_qcif.video[0] = {
192 true, 176, 144, 30,
193 300000, 300000, 300000, false,
194 "VP8", 1, 0, 0,
195 false, false, true, ClipNameToClipPath("paris_qcif")};
minyue626bc952016-10-31 05:47:02 -0700196 paris_qcif.analyzer = {"net_delay_0_0_plr_0", 36.0, 0.96,
197 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200198 fixture->RunWithAnalyzer(paris_qcif);
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000199}
200
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200201TEST(GenericDescriptorTest,
202 Foreman_Cif_Net_Delay_0_0_Plr_0_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200203 auto fixture = CreateVideoQualityTestFixture();
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000204 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200205 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700206 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100207 foreman_cif.video[0] = {
208 true, 352, 288, 30,
209 700000, 700000, 700000, false,
210 "VP8", 1, 0, 0,
211 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200212 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_generic_descriptor",
213 0.0, 0.0, kFullStackTestDurationSecs};
214 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200215 fixture->RunWithAnalyzer(foreman_cif);
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000216}
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +0000217
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200218TEST(GenericDescriptorTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200219 Foreman_Cif_30kbps_Net_Delay_0_0_Plr_0_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200220 auto fixture = CreateVideoQualityTestFixture();
221 ParamsWithLogging foreman_cif;
asaperssonfb6ad3b2016-12-16 06:54:01 -0800222 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100223 foreman_cif.video[0] = {
224 true, 352, 288, 10,
225 30000, 30000, 30000, false,
226 "VP8", 1, 0, 0,
227 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200228 foreman_cif.analyzer = {
229 "foreman_cif_30kbps_net_delay_0_0_plr_0_generic_descriptor", 0.0, 0.0,
230 kFullStackTestDurationSecs};
231 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200232 fixture->RunWithAnalyzer(foreman_cif);
asaperssonfb6ad3b2016-12-16 06:54:01 -0800233}
234
Erik Språngd3438aa2018-11-08 16:56:43 +0100235// TODO(webrtc:9722): Remove when experiment is cleaned up.
Danil Chapovalov636865e2020-06-03 14:11:26 +0200236TEST(GenericDescriptorTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200237 Foreman_Cif_30kbps_Net_Delay_0_0_Plr_0_Trusted_Rate_Ctrl) {
Erik Språngd3438aa2018-11-08 16:56:43 +0100238 test::ScopedFieldTrials override_field_trials(
239 AppendFieldTrials(kVp8TrustedRateControllerFieldTrial));
240 auto fixture = CreateVideoQualityTestFixture();
241
242 ParamsWithLogging foreman_cif;
243 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100244 foreman_cif.video[0] = {
245 true, 352, 288, 10,
246 30000, 30000, 30000, false,
247 "VP8", 1, 0, 0,
248 false, false, true, ClipNameToClipPath("foreman_cif")};
Erik Språngd3438aa2018-11-08 16:56:43 +0100249 foreman_cif.analyzer = {
Danil Chapovalov636865e2020-06-03 14:11:26 +0200250 "foreman_cif_30kbps_net_delay_0_0_plr_0_trusted_rate_ctrl_generic_"
251 "descriptor",
Erik Språngd3438aa2018-11-08 16:56:43 +0100252 0.0, 0.0, kFullStackTestDurationSecs};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200253 foreman_cif.call.generic_descriptor = true;
Erik Språngd3438aa2018-11-08 16:56:43 +0100254 fixture->RunWithAnalyzer(foreman_cif);
255}
256
Stefan Holmer1f7a0082019-01-11 15:39:08 +0100257// Link capacity below default start rate.
Jeremy Leconte4100d552020-09-11 18:02:36 +0200258TEST(FullStackTest, Foreman_Cif_Link_150kbps_Net_Delay_0_0_Plr_0) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200259 auto fixture = CreateVideoQualityTestFixture();
Niels Möller0e909822018-08-21 17:34:35 +0200260 ParamsWithLogging foreman_cif;
Niels Möller6aa415e2018-06-07 11:14:13 +0200261 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100262 foreman_cif.video[0] = {
263 true, 352, 288, 30,
264 30000, 500000, 2000000, false,
265 "VP8", 1, 0, 0,
266 false, false, true, ClipNameToClipPath("foreman_cif")};
Jonas Olssona4d87372019-07-05 19:08:33 +0200267 foreman_cif.analyzer = {"foreman_cif_link_150kbps_net_delay_0_0_plr_0", 0.0,
268 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200269 foreman_cif.config->link_capacity_kbps = 150;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200270 fixture->RunWithAnalyzer(foreman_cif);
Niels Möller6aa415e2018-06-07 11:14:13 +0200271}
272
Erik Språng616b2332019-02-11 14:16:28 +0100273// Restricted network and encoder overproducing by 30%.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200274TEST(FullStackTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200275 Foreman_Cif_Link_150kbps_Delay100ms_30pkts_Queue_Overshoot30) {
Erik Språng616b2332019-02-11 14:16:28 +0100276 auto fixture = CreateVideoQualityTestFixture();
277 ParamsWithLogging foreman_cif;
278 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100279 foreman_cif.video[0] = {
280 true, 352, 288, 30,
281 30000, 500000, 2000000, false,
282 "VP8", 1, 0, 0,
283 false, false, true, ClipNameToClipPath("foreman_cif"),
284 0, {}, 1.30};
Erik Språng616b2332019-02-11 14:16:28 +0100285 foreman_cif.analyzer = {
286 "foreman_cif_link_150kbps_delay100ms_30pkts_queue_overshoot30", 0.0, 0.0,
287 kFullStackTestDurationSecs};
288 foreman_cif.config->link_capacity_kbps = 150;
289 foreman_cif.config->queue_length_packets = 30;
290 foreman_cif.config->queue_delay_ms = 100;
291 fixture->RunWithAnalyzer(foreman_cif);
292}
293
Erik Språng8b8d01a2019-03-02 20:54:55 +0100294// Weak 3G-style link: 250kbps, 1% loss, 100ms delay, 15 packets queue.
295// Packet rate and loss are low enough that loss will happen with ~3s interval.
296// This triggers protection overhead to toggle between zero and non-zero.
297// Link queue is restrictive enough to trigger loss on probes.
Jeremy Leconte4100d552020-09-11 18:02:36 +0200298TEST(FullStackTest, Foreman_Cif_Link_250kbps_Delay100ms_10pkts_Loss1) {
Erik Språng8b8d01a2019-03-02 20:54:55 +0100299 auto fixture = CreateVideoQualityTestFixture();
300 ParamsWithLogging foreman_cif;
301 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100302 foreman_cif.video[0] = {
303 true, 352, 288, 30,
304 30000, 500000, 2000000, false,
305 "VP8", 1, 0, 0,
306 false, false, true, ClipNameToClipPath("foreman_cif"),
307 0, {}, 1.30};
Erik Språng8b8d01a2019-03-02 20:54:55 +0100308 foreman_cif.analyzer = {"foreman_cif_link_250kbps_delay100ms_10pkts_loss1",
309 0.0, 0.0, kFullStackTestDurationSecs};
310 foreman_cif.config->link_capacity_kbps = 250;
311 foreman_cif.config->queue_length_packets = 10;
312 foreman_cif.config->queue_delay_ms = 100;
313 foreman_cif.config->loss_percent = 1;
314 fixture->RunWithAnalyzer(foreman_cif);
315}
316
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200317TEST(GenericDescriptorTest, Foreman_Cif_Delay_50_0_Plr_5_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200318 auto fixture = CreateVideoQualityTestFixture();
319 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700320 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100321 foreman_cif.video[0] = {
322 true, 352, 288, 30,
323 30000, 500000, 2000000, false,
324 "VP8", 1, 0, 0,
325 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200326 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_generic_descriptor",
327 0.0, 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200328 foreman_cif.config->loss_percent = 5;
329 foreman_cif.config->queue_delay_ms = 50;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200330 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200331 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgc216b9a2014-10-14 10:38:49 +0000332}
333
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200334TEST(GenericDescriptorTest,
335 Foreman_Cif_Delay_50_0_Plr_5_Ulpfec_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200336 auto fixture = CreateVideoQualityTestFixture();
337 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800338 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100339 foreman_cif.video[0] = {
340 true, 352, 288, 30,
341 30000, 500000, 2000000, false,
342 "VP8", 1, 0, 0,
343 true, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200344 foreman_cif.analyzer = {
345 "foreman_cif_delay_50_0_plr_5_ulpfec_generic_descriptor", 0.0, 0.0,
346 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200347 foreman_cif.config->loss_percent = 5;
348 foreman_cif.config->queue_delay_ms = 50;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200349 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200350 fixture->RunWithAnalyzer(foreman_cif);
brandtr93c5d032016-11-30 07:50:07 -0800351}
352
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200353TEST(FullStackTest, Foreman_Cif_Delay_50_0_Plr_5_Flexfec) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200354 auto fixture = CreateVideoQualityTestFixture();
355 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800356 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100357 foreman_cif.video[0] = {
358 true, 352, 288, 30,
359 30000, 500000, 2000000, false,
360 "VP8", 1, 0, 0,
361 false, true, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800362 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_flexfec", 0.0, 0.0,
363 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200364 foreman_cif.config->loss_percent = 5;
365 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200366 fixture->RunWithAnalyzer(foreman_cif);
brandtr93c5d032016-11-30 07:50:07 -0800367}
368
Jeremy Leconte4100d552020-09-11 18:02:36 +0200369TEST(FullStackTest, Foreman_Cif_500kbps_Delay_50_0_Plr_3_Flexfec) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200370 auto fixture = CreateVideoQualityTestFixture();
371 ParamsWithLogging foreman_cif;
stefan889d9652017-07-05 03:03:02 -0700372 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100373 foreman_cif.video[0] = {
374 true, 352, 288, 30,
375 30000, 500000, 2000000, false,
376 "VP8", 1, 0, 0,
377 false, true, true, ClipNameToClipPath("foreman_cif")};
stefan889d9652017-07-05 03:03:02 -0700378 foreman_cif.analyzer = {"foreman_cif_500kbps_delay_50_0_plr_3_flexfec", 0.0,
379 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200380 foreman_cif.config->loss_percent = 3;
381 foreman_cif.config->link_capacity_kbps = 500;
382 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200383 fixture->RunWithAnalyzer(foreman_cif);
stefan889d9652017-07-05 03:03:02 -0700384}
385
Jeremy Leconte4100d552020-09-11 18:02:36 +0200386TEST(FullStackTest, Foreman_Cif_500kbps_Delay_50_0_Plr_3_Ulpfec) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200387 auto fixture = CreateVideoQualityTestFixture();
388 ParamsWithLogging foreman_cif;
stefan889d9652017-07-05 03:03:02 -0700389 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100390 foreman_cif.video[0] = {
391 true, 352, 288, 30,
392 30000, 500000, 2000000, false,
393 "VP8", 1, 0, 0,
394 true, false, true, ClipNameToClipPath("foreman_cif")};
stefan889d9652017-07-05 03:03:02 -0700395 foreman_cif.analyzer = {"foreman_cif_500kbps_delay_50_0_plr_3_ulpfec", 0.0,
396 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200397 foreman_cif.config->loss_percent = 3;
398 foreman_cif.config->link_capacity_kbps = 500;
399 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200400 fixture->RunWithAnalyzer(foreman_cif);
stefan889d9652017-07-05 03:03:02 -0700401}
402
brandtrdd369c62016-11-16 23:56:57 -0800403#if defined(WEBRTC_USE_H264)
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200404TEST(FullStackTest, Foreman_Cif_Net_Delay_0_0_Plr_0_H264) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200405 auto fixture = CreateVideoQualityTestFixture();
brandtr93c5d032016-11-30 07:50:07 -0800406 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200407 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800408 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100409 foreman_cif.video[0] = {
410 true, 352, 288, 30,
411 700000, 700000, 700000, false,
412 "H264", 1, 0, 0,
413 false, false, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800414 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_H264", 0.0, 0.0,
415 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200416 fixture->RunWithAnalyzer(foreman_cif);
brandtrdd369c62016-11-16 23:56:57 -0800417}
418
Jeremy Leconte4100d552020-09-11 18:02:36 +0200419TEST(FullStackTest, Foreman_Cif_30kbps_Net_Delay_0_0_Plr_0_H264) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200420 auto fixture = CreateVideoQualityTestFixture();
421 ParamsWithLogging foreman_cif;
asaperssonfb6ad3b2016-12-16 06:54:01 -0800422 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100423 foreman_cif.video[0] = {
424 true, 352, 288, 10,
425 30000, 30000, 30000, false,
426 "H264", 1, 0, 0,
427 false, false, true, ClipNameToClipPath("foreman_cif")};
asaperssonfb6ad3b2016-12-16 06:54:01 -0800428 foreman_cif.analyzer = {"foreman_cif_30kbps_net_delay_0_0_plr_0_H264", 0.0,
429 0.0, kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200430 fixture->RunWithAnalyzer(foreman_cif);
asaperssonfb6ad3b2016-12-16 06:54:01 -0800431}
432
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200433TEST(GenericDescriptorTest,
434 Foreman_Cif_Delay_50_0_Plr_5_H264_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200435 auto fixture = CreateVideoQualityTestFixture();
436 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800437 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100438 foreman_cif.video[0] = {
439 true, 352, 288, 30,
440 30000, 500000, 2000000, false,
441 "H264", 1, 0, 0,
442 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200443 foreman_cif.analyzer = {
444 "foreman_cif_delay_50_0_plr_5_H264_generic_descriptor", 0.0, 0.0,
445 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200446 foreman_cif.config->loss_percent = 5;
447 foreman_cif.config->queue_delay_ms = 50;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200448 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200449 fixture->RunWithAnalyzer(foreman_cif);
brandtrdd369c62016-11-16 23:56:57 -0800450}
451
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200452TEST(FullStackTest, Foreman_Cif_Delay_50_0_Plr_5_H264_Sps_Pps_Idr) {
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100453 test::ScopedFieldTrials override_field_trials(
Erik Språngb6b1cac2018-08-09 16:12:54 +0200454 AppendFieldTrials("WebRTC-SpsPpsIdrIsH264Keyframe/Enabled/"));
Erik Språngd3438aa2018-11-08 16:56:43 +0100455 auto fixture = CreateVideoQualityTestFixture();
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100456
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200457 ParamsWithLogging foreman_cif;
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100458 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100459 foreman_cif.video[0] = {
460 true, 352, 288, 30,
461 30000, 500000, 2000000, false,
462 "H264", 1, 0, 0,
463 false, false, true, ClipNameToClipPath("foreman_cif")};
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100464 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_sps_pps_idr", 0.0,
465 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200466 foreman_cif.config->loss_percent = 5;
467 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200468 fixture->RunWithAnalyzer(foreman_cif);
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100469}
470
brandtrdd369c62016-11-16 23:56:57 -0800471// Verify that this is worth the bot time, before enabling.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200472TEST(FullStackTest, Foreman_Cif_Delay_50_0_Plr_5_H264_Flexfec) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200473 auto fixture = CreateVideoQualityTestFixture();
474 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800475 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100476 foreman_cif.video[0] = {
477 true, 352, 288, 30,
478 30000, 500000, 2000000, false,
479 "H264", 1, 0, 0,
480 false, true, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800481 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_flexfec", 0.0, 0.0,
482 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200483 foreman_cif.config->loss_percent = 5;
484 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200485 fixture->RunWithAnalyzer(foreman_cif);
brandtrdd369c62016-11-16 23:56:57 -0800486}
487
488// Ulpfec with H264 is an unsupported combination, so this test is only useful
489// for debugging. It is therefore disabled by default.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200490TEST(FullStackTest, DISABLED_Foreman_Cif_Delay_50_0_Plr_5_H264_Ulpfec) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200491 auto fixture = CreateVideoQualityTestFixture();
492 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800493 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100494 foreman_cif.video[0] = {
495 true, 352, 288, 30,
496 30000, 500000, 2000000, false,
497 "H264", 1, 0, 0,
498 true, false, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800499 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_ulpfec", 0.0, 0.0,
500 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200501 foreman_cif.config->loss_percent = 5;
502 foreman_cif.config->queue_delay_ms = 50;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200503 fixture->RunWithAnalyzer(foreman_cif);
brandtrdd369c62016-11-16 23:56:57 -0800504}
505#endif // defined(WEBRTC_USE_H264)
506
Jeremy Leconte4100d552020-09-11 18:02:36 +0200507TEST(FullStackTest, Foreman_Cif_500kbps) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200508 auto fixture = CreateVideoQualityTestFixture();
509 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700510 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100511 foreman_cif.video[0] = {
512 true, 352, 288, 30,
513 30000, 500000, 2000000, false,
514 "VP8", 1, 0, 0,
515 false, false, true, ClipNameToClipPath("foreman_cif")};
minyue626bc952016-10-31 05:47:02 -0700516 foreman_cif.analyzer = {"foreman_cif_500kbps", 0.0, 0.0,
517 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200518 foreman_cif.config->queue_length_packets = 0;
519 foreman_cif.config->queue_delay_ms = 0;
520 foreman_cif.config->link_capacity_kbps = 500;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200521 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000522}
523
Jeremy Leconte4100d552020-09-11 18:02:36 +0200524TEST(FullStackTest, Foreman_Cif_500kbps_32pkts_Queue) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200525 auto fixture = CreateVideoQualityTestFixture();
526 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700527 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100528 foreman_cif.video[0] = {
529 true, 352, 288, 30,
530 30000, 500000, 2000000, false,
531 "VP8", 1, 0, 0,
532 false, false, true, ClipNameToClipPath("foreman_cif")};
minyue626bc952016-10-31 05:47:02 -0700533 foreman_cif.analyzer = {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0,
534 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200535 foreman_cif.config->queue_length_packets = 32;
536 foreman_cif.config->queue_delay_ms = 0;
537 foreman_cif.config->link_capacity_kbps = 500;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200538 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000539}
540
Jeremy Leconte4100d552020-09-11 18:02:36 +0200541TEST(FullStackTest, Foreman_Cif_500kbps_100ms) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200542 auto fixture = CreateVideoQualityTestFixture();
543 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700544 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100545 foreman_cif.video[0] = {
546 true, 352, 288, 30,
547 30000, 500000, 2000000, false,
548 "VP8", 1, 0, 0,
549 false, false, true, ClipNameToClipPath("foreman_cif")};
minyue626bc952016-10-31 05:47:02 -0700550 foreman_cif.analyzer = {"foreman_cif_500kbps_100ms", 0.0, 0.0,
551 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200552 foreman_cif.config->queue_length_packets = 0;
553 foreman_cif.config->queue_delay_ms = 100;
554 foreman_cif.config->link_capacity_kbps = 500;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200555 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000556}
557
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200558TEST(GenericDescriptorTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200559 Foreman_Cif_500kbps_100ms_32pkts_Queue_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200560 auto fixture = CreateVideoQualityTestFixture();
561 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700562 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100563 foreman_cif.video[0] = {
564 true, 352, 288, 30,
565 30000, 500000, 2000000, false,
566 "VP8", 1, 0, 0,
567 false, false, true, ClipNameToClipPath("foreman_cif")};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200568 foreman_cif.analyzer = {
569 "foreman_cif_500kbps_100ms_32pkts_queue_generic_descriptor", 0.0, 0.0,
570 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200571 foreman_cif.config->queue_length_packets = 32;
572 foreman_cif.config->queue_delay_ms = 100;
573 foreman_cif.config->link_capacity_kbps = 500;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200574 foreman_cif.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200575 fixture->RunWithAnalyzer(foreman_cif);
stefanb1797672016-08-11 07:00:57 -0700576}
577
Jeremy Leconte4100d552020-09-11 18:02:36 +0200578TEST(FullStackTest, Foreman_Cif_500kbps_100ms_32pkts_Queue_Recv_Bwe) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200579 auto fixture = CreateVideoQualityTestFixture();
580 ParamsWithLogging foreman_cif;
brandtr93c5d032016-11-30 07:50:07 -0800581 foreman_cif.call.send_side_bwe = false;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100582 foreman_cif.video[0] = {
583 true, 352, 288, 30,
584 30000, 500000, 2000000, false,
585 "VP8", 1, 0, 0,
586 false, false, true, ClipNameToClipPath("foreman_cif")};
brandtr93c5d032016-11-30 07:50:07 -0800587 foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue_recv_bwe",
588 0.0, 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200589 foreman_cif.config->queue_length_packets = 32;
590 foreman_cif.config->queue_delay_ms = 100;
591 foreman_cif.config->link_capacity_kbps = 500;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200592 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000593}
594
Jeremy Leconte4100d552020-09-11 18:02:36 +0200595TEST(FullStackTest, Foreman_Cif_1000kbps_100ms_32pkts_Queue) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200596 auto fixture = CreateVideoQualityTestFixture();
597 ParamsWithLogging foreman_cif;
minyue626bc952016-10-31 05:47:02 -0700598 foreman_cif.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100599 foreman_cif.video[0] = {
600 true, 352, 288, 30,
601 30000, 2000000, 2000000, false,
602 "VP8", 1, 0, 0,
603 false, false, true, ClipNameToClipPath("foreman_cif")};
minyue626bc952016-10-31 05:47:02 -0700604 foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0,
605 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200606 foreman_cif.config->queue_length_packets = 32;
607 foreman_cif.config->queue_delay_ms = 100;
608 foreman_cif.config->link_capacity_kbps = 1000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200609 fixture->RunWithAnalyzer(foreman_cif);
stefan@webrtc.orgb8e9e442014-07-09 11:29:06 +0000610}
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000611
sprangff19d352017-09-06 07:14:02 -0700612// TODO(sprang): Remove this if we have the similar ModerateLimits below?
Jeremy Leconte4100d552020-09-11 18:02:36 +0200613TEST(FullStackTest, Conference_Motion_Hd_2000kbps_100ms_32pkts_Queue) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200614 auto fixture = CreateVideoQualityTestFixture();
615 ParamsWithLogging conf_motion_hd;
minyue626bc952016-10-31 05:47:02 -0700616 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100617 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100618 true, 1280,
619 720, 50,
620 30000, 3000000,
621 3000000, false,
622 "VP8", 1,
623 0, 0,
624 false, false,
625 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
minyue626bc952016-10-31 05:47:02 -0700626 conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue",
627 0.0, 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200628 conf_motion_hd.config->queue_length_packets = 32;
629 conf_motion_hd.config->queue_delay_ms = 100;
630 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200631 fixture->RunWithAnalyzer(conf_motion_hd);
stefanb1797672016-08-11 07:00:57 -0700632}
633
Erik Språngd3438aa2018-11-08 16:56:43 +0100634// TODO(webrtc:9722): Remove when experiment is cleaned up.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200635TEST(FullStackTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200636 Conference_Motion_Hd_1tl_Moderate_Limits_Trusted_Rate_Ctrl) {
Erik Språngd3438aa2018-11-08 16:56:43 +0100637 test::ScopedFieldTrials override_field_trials(
638 AppendFieldTrials(kVp8TrustedRateControllerFieldTrial));
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200639 auto fixture = CreateVideoQualityTestFixture();
Erik Språngd3438aa2018-11-08 16:56:43 +0100640
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200641 ParamsWithLogging conf_motion_hd;
sprangff19d352017-09-06 07:14:02 -0700642 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100643 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100644 true, 1280,
645 720, 50,
646 30000, 3000000,
647 3000000, false,
648 "VP8", 1,
649 -1, 0,
650 false, false,
651 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
Erik Språngd3438aa2018-11-08 16:56:43 +0100652 conf_motion_hd.analyzer = {
653 "conference_motion_hd_1tl_moderate_limits_trusted_rate_ctrl", 0.0, 0.0,
654 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200655 conf_motion_hd.config->queue_length_packets = 50;
656 conf_motion_hd.config->loss_percent = 3;
657 conf_motion_hd.config->queue_delay_ms = 100;
658 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200659 fixture->RunWithAnalyzer(conf_motion_hd);
sprangff19d352017-09-06 07:14:02 -0700660}
661
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200662TEST(GenericDescriptorTest,
Jeremy Leconte4100d552020-09-11 18:02:36 +0200663 Conference_Motion_Hd_2tl_Moderate_Limits_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200664 auto fixture = CreateVideoQualityTestFixture();
665 ParamsWithLogging conf_motion_hd;
sprangff19d352017-09-06 07:14:02 -0700666 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100667 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100668 true, 1280,
669 720, 50,
670 30000, 3000000,
671 3000000, false,
672 "VP8", 2,
673 -1, 0,
674 false, false,
675 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
philipeldd8b0d82018-09-27 11:18:10 +0200676 conf_motion_hd.analyzer = {
Danil Chapovalov636865e2020-06-03 14:11:26 +0200677 "conference_motion_hd_2tl_moderate_limits_generic_descriptor", 0.0, 0.0,
philipeldd8b0d82018-09-27 11:18:10 +0200678 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200679 conf_motion_hd.config->queue_length_packets = 50;
680 conf_motion_hd.config->loss_percent = 3;
681 conf_motion_hd.config->queue_delay_ms = 100;
682 conf_motion_hd.config->link_capacity_kbps = 2000;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200683 conf_motion_hd.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200684 fixture->RunWithAnalyzer(conf_motion_hd);
sprangff19d352017-09-06 07:14:02 -0700685}
686
Jeremy Leconte4100d552020-09-11 18:02:36 +0200687TEST(FullStackTest, Conference_Motion_Hd_3tl_Moderate_Limits) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200688 auto fixture = CreateVideoQualityTestFixture();
689 ParamsWithLogging conf_motion_hd;
sprangff19d352017-09-06 07:14:02 -0700690 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100691 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100692 true, 1280,
693 720, 50,
694 30000, 3000000,
695 3000000, false,
696 "VP8", 3,
697 -1, 0,
698 false, false,
699 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
sprangff19d352017-09-06 07:14:02 -0700700 conf_motion_hd.analyzer = {"conference_motion_hd_3tl_moderate_limits", 0.0,
701 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200702 conf_motion_hd.config->queue_length_packets = 50;
703 conf_motion_hd.config->loss_percent = 3;
704 conf_motion_hd.config->queue_delay_ms = 100;
705 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200706 fixture->RunWithAnalyzer(conf_motion_hd);
sprangff19d352017-09-06 07:14:02 -0700707}
708
Jeremy Leconte4100d552020-09-11 18:02:36 +0200709TEST(FullStackTest, Conference_Motion_Hd_4tl_Moderate_Limits) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200710 auto fixture = CreateVideoQualityTestFixture();
711 ParamsWithLogging conf_motion_hd;
sprangff19d352017-09-06 07:14:02 -0700712 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100713 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100714 true, 1280,
715 720, 50,
716 30000, 3000000,
717 3000000, false,
718 "VP8", 4,
719 -1, 0,
720 false, false,
721 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
sprangff19d352017-09-06 07:14:02 -0700722 conf_motion_hd.analyzer = {"conference_motion_hd_4tl_moderate_limits", 0.0,
723 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200724 conf_motion_hd.config->queue_length_packets = 50;
725 conf_motion_hd.config->loss_percent = 3;
726 conf_motion_hd.config->queue_delay_ms = 100;
727 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200728 fixture->RunWithAnalyzer(conf_motion_hd);
sprangff19d352017-09-06 07:14:02 -0700729}
730
Jeremy Leconte4100d552020-09-11 18:02:36 +0200731TEST(FullStackTest, Conference_Motion_Hd_3tl_Alt_Moderate_Limits) {
Erik Språngb6b1cac2018-08-09 16:12:54 +0200732 test::ScopedFieldTrials field_trial(
733 AppendFieldTrials("WebRTC-UseShortVP8TL3Pattern/Enabled/"));
Erik Språngd3438aa2018-11-08 16:56:43 +0100734 auto fixture = CreateVideoQualityTestFixture();
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200735 ParamsWithLogging conf_motion_hd;
sprangff19d352017-09-06 07:14:02 -0700736 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100737 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100738 true, 1280,
739 720, 50,
740 30000, 3000000,
741 3000000, false,
742 "VP8", 3,
743 -1, 0,
744 false, false,
745 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
Rasmus Brandt35836932018-10-23 09:17:24 +0200746 conf_motion_hd.analyzer = {"conference_motion_hd_3tl_alt_moderate_limits",
747 0.0, 0.0, kFullStackTestDurationSecs};
748 conf_motion_hd.config->queue_length_packets = 50;
749 conf_motion_hd.config->loss_percent = 3;
750 conf_motion_hd.config->queue_delay_ms = 100;
751 conf_motion_hd.config->link_capacity_kbps = 2000;
752 fixture->RunWithAnalyzer(conf_motion_hd);
753}
754
Jeremy Leconte4100d552020-09-11 18:02:36 +0200755TEST(FullStackTest, Conference_Motion_Hd_3tl_Alt_Heavy_Moderate_Limits) {
Rasmus Brandt35836932018-10-23 09:17:24 +0200756 auto fixture = CreateVideoQualityTestFixture();
757 test::ScopedFieldTrials field_trial(
758 AppendFieldTrials("WebRTC-UseShortVP8TL3Pattern/Enabled/"
759 "WebRTC-UseBaseHeavyVP8TL3RateAllocation/Enabled/"));
760 ParamsWithLogging conf_motion_hd;
761 conf_motion_hd.call.send_side_bwe = true;
762 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100763 true, 1280,
764 720, 50,
765 30000, 3000000,
766 3000000, false,
767 "VP8", 3,
768 -1, 0,
769 false, false,
770 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
Rasmus Brandt35836932018-10-23 09:17:24 +0200771 conf_motion_hd.analyzer = {
772 "conference_motion_hd_3tl_alt_heavy_moderate_limits", 0.0, 0.0,
773 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200774 conf_motion_hd.config->queue_length_packets = 50;
775 conf_motion_hd.config->loss_percent = 3;
776 conf_motion_hd.config->queue_delay_ms = 100;
777 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200778 fixture->RunWithAnalyzer(conf_motion_hd);
sprangff19d352017-09-06 07:14:02 -0700779}
780
Mirko Bonadei8ef57932018-11-16 14:38:03 +0100781#if defined(RTC_ENABLE_VP9)
Jeremy Leconte4100d552020-09-11 18:02:36 +0200782TEST(FullStackTest, Conference_Motion_Hd_2000kbps_100ms_32pkts_Queue_Vp9) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200783 auto fixture = CreateVideoQualityTestFixture();
784 ParamsWithLogging conf_motion_hd;
jianj390e64d2017-02-03 09:51:23 -0800785 conf_motion_hd.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100786 conf_motion_hd.video[0] = {
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100787 true, 1280,
788 720, 50,
789 30000, 3000000,
790 3000000, false,
791 "VP9", 1,
792 0, 0,
793 false, false,
794 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
jianj390e64d2017-02-03 09:51:23 -0800795 conf_motion_hd.analyzer = {
796 "conference_motion_hd_2000kbps_100ms_32pkts_queue_vp9", 0.0, 0.0,
797 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200798 conf_motion_hd.config->queue_length_packets = 32;
799 conf_motion_hd.config->queue_delay_ms = 100;
800 conf_motion_hd.config->link_capacity_kbps = 2000;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200801 fixture->RunWithAnalyzer(conf_motion_hd);
jianj390e64d2017-02-03 09:51:23 -0800802}
803#endif
804
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200805TEST(FullStackTest, Screenshare_Slides) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200806 auto fixture = CreateVideoQualityTestFixture();
807 ParamsWithLogging screenshare;
minyue626bc952016-10-31 05:47:02 -0700808 screenshare.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200809 screenshare.video[0] = {true, 1850, 1110, 5, 50000, 200000,
810 1000000, false, "VP8", 2, 1, 400000,
811 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100812 screenshare.screenshare[0] = {true, false, 10};
minyue626bc952016-10-31 05:47:02 -0700813 screenshare.analyzer = {"screenshare_slides", 0.0, 0.0,
814 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200815 fixture->RunWithAnalyzer(screenshare);
Erik Språng6ee69aa2015-09-03 15:58:05 +0200816}
817
Florent Castelli66b38602019-07-10 16:57:57 +0200818#if !defined(WEBRTC_MAC) && !defined(WEBRTC_WIN)
Oskar Sundbom8bacf252019-01-08 16:40:08 +0100819// TODO(bugs.webrtc.org/9840): Investigate why is this test flaky on Win/Mac.
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200820TEST(FullStackTest, Screenshare_Slides_Simulcast) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200821 auto fixture = CreateVideoQualityTestFixture();
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200822 ParamsWithLogging screenshare;
ilnikcb8c1462017-03-09 09:23:30 -0800823 screenshare.call.send_side_bwe = true;
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100824 screenshare.screenshare[0] = {true, false, 10};
Ilya Nikolaevskiydda5fdc2019-02-27 10:00:06 +0100825 screenshare.video[0] = {true, 1850, 1110, 30, 800000, 2500000,
Ilya Nikolaevskiyaec663e2019-02-27 12:52:11 +0100826 2500000, false, "VP8", 2, 1, 400000,
Ilya Nikolaevskiydda5fdc2019-02-27 10:00:06 +0100827 false, false, false, ""};
ilnikcb8c1462017-03-09 09:23:30 -0800828 screenshare.analyzer = {"screenshare_slides_simulcast", 0.0, 0.0,
829 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200830 ParamsWithLogging screenshare_params_high;
Ilya Nikolaevskiydda5fdc2019-02-27 10:00:06 +0100831 screenshare_params_high.video[0] = {
832 true, 1850, 1110, 60, 600000, 1250000, 1250000, false,
833 "VP8", 2, 0, 400000, false, false, false, ""};
ilnikcb8c1462017-03-09 09:23:30 -0800834 VideoQualityTest::Params screenshare_params_low;
Ilya Nikolaevskiydda5fdc2019-02-27 10:00:06 +0100835 screenshare_params_low.video[0] = {true, 1850, 1110, 5, 30000, 200000,
Erik Språng28bb3912018-07-11 16:06:55 +0200836 1000000, false, "VP8", 2, 0, 400000,
837 false, false, false, ""};
ilnikcb8c1462017-03-09 09:23:30 -0800838
839 std::vector<VideoStream> streams = {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200840 VideoQualityTest::DefaultVideoStream(screenshare_params_low, 0),
841 VideoQualityTest::DefaultVideoStream(screenshare_params_high, 0)};
Sergey Silkin57027362018-05-15 09:12:05 +0200842 screenshare.ss[0] = {
843 streams, 1, 1, 0, InterLayerPredMode::kOn, std::vector<SpatialLayer>(),
844 false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200845 fixture->RunWithAnalyzer(screenshare);
ilnikcb8c1462017-03-09 09:23:30 -0800846}
Ilya Nikolaevskiy7b412252019-03-06 16:40:42 +0100847
Florent Castelli66b38602019-07-10 16:57:57 +0200848#endif // !defined(WEBRTC_MAC) && !defined(WEBRTC_WIN)
ilnikcb8c1462017-03-09 09:23:30 -0800849
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200850TEST(FullStackTest, Screenshare_Slides_Scrolling) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200851 auto fixture = CreateVideoQualityTestFixture();
852 ParamsWithLogging config;
minyue626bc952016-10-31 05:47:02 -0700853 config.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200854 config.video[0] = {true, 1850, 1110 / 2, 5, 50000, 200000,
855 1000000, false, "VP8", 2, 1, 400000,
856 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100857 config.screenshare[0] = {true, false, 10, 2};
minyue626bc952016-10-31 05:47:02 -0700858 config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0,
859 kFullStackTestDurationSecs};
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200860 fixture->RunWithAnalyzer(config);
ivica028cf482015-07-30 02:15:56 -0700861}
862
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200863TEST(GenericDescriptorTest, Screenshare_Slides_Lossy_Net_Generic_Descriptor) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200864 auto fixture = CreateVideoQualityTestFixture();
865 ParamsWithLogging screenshare;
minyue626bc952016-10-31 05:47:02 -0700866 screenshare.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200867 screenshare.video[0] = {true, 1850, 1110, 5, 50000, 200000,
868 1000000, false, "VP8", 2, 1, 400000,
869 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100870 screenshare.screenshare[0] = {true, false, 10};
Danil Chapovalov636865e2020-06-03 14:11:26 +0200871 screenshare.analyzer = {"screenshare_slides_lossy_net_generic_descriptor",
872 0.0, 0.0, kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200873 screenshare.config->loss_percent = 5;
874 screenshare.config->queue_delay_ms = 200;
875 screenshare.config->link_capacity_kbps = 500;
Danil Chapovalov636865e2020-06-03 14:11:26 +0200876 screenshare.call.generic_descriptor = true;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200877 fixture->RunWithAnalyzer(screenshare);
sprangee37de32015-11-23 06:10:23 -0800878}
879
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200880TEST(FullStackTest, Screenshare_Slides_Very_Lossy) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200881 auto fixture = CreateVideoQualityTestFixture();
882 ParamsWithLogging screenshare;
minyue626bc952016-10-31 05:47:02 -0700883 screenshare.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200884 screenshare.video[0] = {true, 1850, 1110, 5, 50000, 200000,
885 1000000, false, "VP8", 2, 1, 400000,
886 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100887 screenshare.screenshare[0] = {true, false, 10};
minyue626bc952016-10-31 05:47:02 -0700888 screenshare.analyzer = {"screenshare_slides_very_lossy", 0.0, 0.0,
889 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200890 screenshare.config->loss_percent = 10;
891 screenshare.config->queue_delay_ms = 200;
892 screenshare.config->link_capacity_kbps = 500;
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200893 fixture->RunWithAnalyzer(screenshare);
sprangee37de32015-11-23 06:10:23 -0800894}
895
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200896TEST(FullStackTest, Screenshare_Slides_Lossy_Limited) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200897 auto fixture = CreateVideoQualityTestFixture();
898 ParamsWithLogging screenshare;
sprange566e172017-06-08 01:29:15 -0700899 screenshare.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200900 screenshare.video[0] = {true, 1850, 1110, 5, 50000, 200000,
901 1000000, false, "VP8", 2, 1, 400000,
902 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100903 screenshare.screenshare[0] = {true, false, 10};
sprange566e172017-06-08 01:29:15 -0700904 screenshare.analyzer = {"screenshare_slides_lossy_limited", 0.0, 0.0,
905 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200906 screenshare.config->loss_percent = 5;
907 screenshare.config->link_capacity_kbps = 200;
908 screenshare.config->queue_length_packets = 30;
sprange566e172017-06-08 01:29:15 -0700909
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200910 fixture->RunWithAnalyzer(screenshare);
sprange566e172017-06-08 01:29:15 -0700911}
912
Jeremy Lecontec8850cb2020-09-10 20:46:33 +0200913TEST(FullStackTest, Screenshare_Slides_Moderately_Restricted) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200914 auto fixture = CreateVideoQualityTestFixture();
915 ParamsWithLogging screenshare;
sprang89c4a7e2017-06-30 13:27:40 -0700916 screenshare.call.send_side_bwe = true;
Erik Språng28bb3912018-07-11 16:06:55 +0200917 screenshare.video[0] = {true, 1850, 1110, 5, 50000, 200000,
918 1000000, false, "VP8", 2, 1, 400000,
919 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100920 screenshare.screenshare[0] = {true, false, 10};
sprang89c4a7e2017-06-30 13:27:40 -0700921 screenshare.analyzer = {"screenshare_slides_moderately_restricted", 0.0, 0.0,
922 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +0200923 screenshare.config->loss_percent = 1;
924 screenshare.config->link_capacity_kbps = 1200;
925 screenshare.config->queue_length_packets = 30;
sprang89c4a7e2017-06-30 13:27:40 -0700926
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200927 fixture->RunWithAnalyzer(screenshare);
sprang89c4a7e2017-06-30 13:27:40 -0700928}
929
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100930// Since ParamsWithLogging::Video is not trivially destructible, we can't
931// store these structs as const globals.
932ParamsWithLogging::Video SvcVp9Video() {
933 return ParamsWithLogging::Video{
934 true, 1280,
935 720, 30,
936 800000, 2500000,
937 2500000, false,
938 "VP9", 3,
939 2, 400000,
940 false, false,
941 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
942}
ilnik566c43b2017-03-07 04:42:54 -0800943
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100944ParamsWithLogging::Video SimulcastVp8VideoHigh() {
945 return ParamsWithLogging::Video{
946 true, 1280,
947 720, 30,
948 800000, 2500000,
949 2500000, false,
950 "VP8", 3,
951 2, 400000,
952 false, false,
953 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
954}
ilnik566c43b2017-03-07 04:42:54 -0800955
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100956ParamsWithLogging::Video SimulcastVp8VideoMedium() {
957 return ParamsWithLogging::Video{
958 true, 640,
959 360, 30,
960 150000, 500000,
961 700000, false,
962 "VP8", 3,
963 2, 400000,
964 false, false,
965 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
966}
ilnik566c43b2017-03-07 04:42:54 -0800967
Rasmus Brandt3c589be2019-03-13 11:32:40 +0100968ParamsWithLogging::Video SimulcastVp8VideoLow() {
969 return ParamsWithLogging::Video{
970 true, 320,
971 180, 30,
972 30000, 150000,
973 200000, false,
974 "VP8", 3,
975 2, 400000,
976 false, false,
977 false, ClipNameToClipPath("ConferenceMotion_1280_720_50")};
978}
ilnik566c43b2017-03-07 04:42:54 -0800979
Mirko Bonadei8ef57932018-11-16 14:38:03 +0100980#if defined(RTC_ENABLE_VP9)
Ilya Nikolaevskiy61170682019-03-06 16:04:32 +0100981
Jeremy Leconte4100d552020-09-11 18:02:36 +0200982TEST(FullStackTest, Screenshare_Slides_Vp9_3sl_High_Fps) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200983 auto fixture = CreateVideoQualityTestFixture();
984 ParamsWithLogging screenshare;
minyue626bc952016-10-31 05:47:02 -0700985 screenshare.call.send_side_bwe = true;
Ilya Nikolaevskiy61170682019-03-06 16:04:32 +0100986 screenshare.video[0] = {true, 1850, 1110, 30, 50000, 200000,
987 2000000, false, "VP9", 1, 0, 400000,
988 false, false, false, ""};
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +0100989 screenshare.screenshare[0] = {true, false, 10};
Ilya Nikolaevskiy61170682019-03-06 16:04:32 +0100990 screenshare.analyzer = {"screenshare_slides_vp9_3sl_high_fps", 0.0, 0.0,
minyue626bc952016-10-31 05:47:02 -0700991 kFullStackTestDurationSecs};
Sergey Silkin57027362018-05-15 09:12:05 +0200992 screenshare.ss[0] = {
Ilya Nikolaevskiy61170682019-03-06 16:04:32 +0100993 std::vector<VideoStream>(), 0, 3, 2, InterLayerPredMode::kOn,
994 std::vector<SpatialLayer>(), true};
995 fixture->RunWithAnalyzer(screenshare);
996}
997
Patrik Höglundf6767ed2020-03-13 12:45:32 +0100998// TODO(http://bugs.webrtc.org/9506): investigate.
Sergey Silkin7f978f12018-09-10 12:01:49 +0000999#if !defined(WEBRTC_MAC)
1000
Jeremy Leconte4100d552020-09-11 18:02:36 +02001001TEST(FullStackTest, Vp9ksvc_3sl_High) {
Sergey Silkine7ce8882018-10-03 18:04:57 +02001002 webrtc::test::ScopedFieldTrials override_trials(
1003 AppendFieldTrials("WebRTC-Vp9IssueKeyFrameOnLayerDeactivation/Enabled/"));
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001004 auto fixture = CreateVideoQualityTestFixture();
1005 ParamsWithLogging simulcast;
Sergey Silkin0643fd62018-05-17 12:50:53 +02001006 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001007 simulcast.video[0] = SvcVp9Video();
Sergey Silkin0643fd62018-05-17 12:50:53 +02001008 simulcast.analyzer = {"vp9ksvc_3sl_high", 0.0, 0.0,
1009 kFullStackTestDurationSecs};
1010 simulcast.ss[0] = {
1011 std::vector<VideoStream>(), 0, 3, 2, InterLayerPredMode::kOnKeyPic,
1012 std::vector<SpatialLayer>(), false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001013 fixture->RunWithAnalyzer(simulcast);
Sergey Silkin0643fd62018-05-17 12:50:53 +02001014}
1015
Jeremy Leconte4100d552020-09-11 18:02:36 +02001016TEST(FullStackTest, Vp9ksvc_3sl_Low) {
Sergey Silkine7ce8882018-10-03 18:04:57 +02001017 webrtc::test::ScopedFieldTrials override_trials(
1018 AppendFieldTrials("WebRTC-Vp9IssueKeyFrameOnLayerDeactivation/Enabled/"));
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001019 auto fixture = CreateVideoQualityTestFixture();
1020 ParamsWithLogging simulcast;
Sergey Silkin0643fd62018-05-17 12:50:53 +02001021 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001022 simulcast.video[0] = SvcVp9Video();
Sergey Silkin0643fd62018-05-17 12:50:53 +02001023 simulcast.analyzer = {"vp9ksvc_3sl_low", 0.0, 0.0,
1024 kFullStackTestDurationSecs};
1025 simulcast.ss[0] = {
1026 std::vector<VideoStream>(), 0, 3, 0, InterLayerPredMode::kOnKeyPic,
1027 std::vector<SpatialLayer>(), false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001028 fixture->RunWithAnalyzer(simulcast);
Sergey Silkin0643fd62018-05-17 12:50:53 +02001029}
“Michael277a6562018-06-01 14:09:19 -05001030
Jeremy Leconte4100d552020-09-11 18:02:36 +02001031TEST(FullStackTest, Vp9ksvc_3sl_Low_Bw_Limited) {
Ilya Nikolaevskiyef0033b2020-02-25 13:59:08 +01001032 webrtc::test::ScopedFieldTrials override_trials(
1033 AppendFieldTrials("WebRTC-Vp9IssueKeyFrameOnLayerDeactivation/Enabled/"
1034 "WebRTC-Vp9ExternalRefCtrl/Enabled/"));
1035 auto fixture = CreateVideoQualityTestFixture();
1036 ParamsWithLogging simulcast;
1037 simulcast.config->link_capacity_kbps = 500;
1038 simulcast.call.send_side_bwe = true;
1039 simulcast.video[0] = SvcVp9Video();
1040 simulcast.analyzer = {"vp9ksvc_3sl_low_bw_limited", 0.0, 0.0,
1041 kFullStackTestDurationSecs};
1042 simulcast.ss[0] = {
1043 std::vector<VideoStream>(), 0, 3, 0, InterLayerPredMode::kOnKeyPic,
1044 std::vector<SpatialLayer>(), false};
1045 fixture->RunWithAnalyzer(simulcast);
1046}
1047
Jeremy Leconte4100d552020-09-11 18:02:36 +02001048TEST(FullStackTest, Vp9ksvc_3sl_Medium_Network_Restricted) {
Sergey Silkine7ce8882018-10-03 18:04:57 +02001049 webrtc::test::ScopedFieldTrials override_trials(
1050 AppendFieldTrials("WebRTC-Vp9IssueKeyFrameOnLayerDeactivation/Enabled/"));
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001051 auto fixture = CreateVideoQualityTestFixture();
Niels Möller0e909822018-08-21 17:34:35 +02001052 ParamsWithLogging simulcast;
“Michael277a6562018-06-01 14:09:19 -05001053 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001054 simulcast.video[0] = SvcVp9Video();
“Michael277a6562018-06-01 14:09:19 -05001055 simulcast.analyzer = {"vp9ksvc_3sl_medium_network_restricted", 0.0, 0.0,
1056 kFullStackTestDurationSecs};
1057 simulcast.ss[0] = {
Sergey Silkine7ce8882018-10-03 18:04:57 +02001058 std::vector<VideoStream>(), 0, 3, -1, InterLayerPredMode::kOnKeyPic,
“Michael277a6562018-06-01 14:09:19 -05001059 std::vector<SpatialLayer>(), false};
Artem Titovf18b3522018-08-28 16:54:24 +02001060 simulcast.config->link_capacity_kbps = 1000;
Sergey Silkine7ce8882018-10-03 18:04:57 +02001061 simulcast.config->queue_delay_ms = 100;
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001062 fixture->RunWithAnalyzer(simulcast);
“Michael277a6562018-06-01 14:09:19 -05001063}
Erik Språngd3438aa2018-11-08 16:56:43 +01001064
1065// TODO(webrtc:9722): Remove when experiment is cleaned up.
Jeremy Leconte4100d552020-09-11 18:02:36 +02001066TEST(FullStackTest, Vp9ksvc_3sl_Medium_Network_Restricted_Trusted_Rate) {
Erik Språngd3438aa2018-11-08 16:56:43 +01001067 webrtc::test::ScopedFieldTrials override_trials(
1068 AppendFieldTrials("WebRTC-Vp9IssueKeyFrameOnLayerDeactivation/Enabled/"
1069 "WebRTC-LibvpxVp9TrustedRateController/Enabled/"));
1070 auto fixture = CreateVideoQualityTestFixture();
1071 ParamsWithLogging simulcast;
1072 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001073 simulcast.video[0] = SvcVp9Video();
Erik Språngd3438aa2018-11-08 16:56:43 +01001074 simulcast.analyzer = {"vp9ksvc_3sl_medium_network_restricted_trusted_rate",
1075 0.0, 0.0, kFullStackTestDurationSecs};
1076 simulcast.ss[0] = {
1077 std::vector<VideoStream>(), 0, 3, -1, InterLayerPredMode::kOnKeyPic,
1078 std::vector<SpatialLayer>(), false};
1079 simulcast.config->link_capacity_kbps = 1000;
1080 simulcast.config->queue_delay_ms = 100;
1081 fixture->RunWithAnalyzer(simulcast);
1082}
Sergey Silkin7f978f12018-09-10 12:01:49 +00001083#endif // !defined(WEBRTC_MAC)
1084
Mirko Bonadei8ef57932018-11-16 14:38:03 +01001085#endif // defined(RTC_ENABLE_VP9)
brandtr93c5d032016-11-30 07:50:07 -08001086
ilnik6b826ef2017-06-16 06:53:48 -07001087// Android bots can't handle FullHD, so disable the test.
Ilya Nikolaevskiy7e5203f2018-09-10 12:04:50 +00001088// TODO(bugs.webrtc.org/9220): Investigate source of flakiness on Mac.
1089#if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC)
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001090#define MAYBE_Simulcast_HD_High DISABLED_Simulcast_HD_High
ilnik6b826ef2017-06-16 06:53:48 -07001091#else
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001092#define MAYBE_Simulcast_HD_High Simulcast_HD_High
ilnik6b826ef2017-06-16 06:53:48 -07001093#endif
1094
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001095TEST(FullStackTest, MAYBE_Simulcast_HD_High) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001096 auto fixture = CreateVideoQualityTestFixture();
1097 ParamsWithLogging simulcast;
ilnik6b826ef2017-06-16 06:53:48 -07001098 simulcast.call.send_side_bwe = true;
Jonas Olssona4d87372019-07-05 19:08:33 +02001099 simulcast.video[0] = {true, 1920, 1080, 30, 800000, 2500000,
1100 2500000, false, "VP8", 3, 2, 400000,
1101 false, false, false, "Generator"};
ilnik6b826ef2017-06-16 06:53:48 -07001102 simulcast.analyzer = {"simulcast_HD_high", 0.0, 0.0,
1103 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +02001104 simulcast.config->loss_percent = 0;
1105 simulcast.config->queue_delay_ms = 100;
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001106 std::vector<VideoStream> streams = {
Jonas Olssona4d87372019-07-05 19:08:33 +02001107 VideoQualityTest::DefaultVideoStream(simulcast, 0),
1108 VideoQualityTest::DefaultVideoStream(simulcast, 0),
1109 VideoQualityTest::DefaultVideoStream(simulcast, 0)};
Sergey Silkin57027362018-05-15 09:12:05 +02001110 simulcast.ss[0] = {
1111 streams, 2, 1, 0, InterLayerPredMode::kOn, std::vector<SpatialLayer>(),
1112 true};
Erik Språngb6b1cac2018-08-09 16:12:54 +02001113 webrtc::test::ScopedFieldTrials override_trials(AppendFieldTrials(
1114 "WebRTC-ForceSimulatedOveruseIntervalMs/1000-50000-300/"));
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001115 fixture->RunWithAnalyzer(simulcast);
ilnik6b826ef2017-06-16 06:53:48 -07001116}
1117
Jeremy Leconte4100d552020-09-11 18:02:36 +02001118TEST(FullStackTest, Simulcast_Vp8_3sl_High) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001119 auto fixture = CreateVideoQualityTestFixture();
1120 ParamsWithLogging simulcast;
ilnik3dd5ad92017-02-09 04:58:53 -08001121 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001122 simulcast.video[0] = SimulcastVp8VideoHigh();
ilnik2a8c2f52017-02-15 02:23:28 -08001123 simulcast.analyzer = {"simulcast_vp8_3sl_high", 0.0, 0.0,
ilnik3dd5ad92017-02-09 04:58:53 -08001124 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +02001125 simulcast.config->loss_percent = 0;
1126 simulcast.config->queue_delay_ms = 100;
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001127 ParamsWithLogging video_params_high;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001128 video_params_high.video[0] = SimulcastVp8VideoHigh();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001129 ParamsWithLogging video_params_medium;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001130 video_params_medium.video[0] = SimulcastVp8VideoMedium();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001131 ParamsWithLogging video_params_low;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001132 video_params_low.video[0] = SimulcastVp8VideoLow();
ilnik3dd5ad92017-02-09 04:58:53 -08001133
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +01001134 std::vector<VideoStream> streams = {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001135 VideoQualityTest::DefaultVideoStream(video_params_low, 0),
1136 VideoQualityTest::DefaultVideoStream(video_params_medium, 0),
1137 VideoQualityTest::DefaultVideoStream(video_params_high, 0)};
Sergey Silkin57027362018-05-15 09:12:05 +02001138 simulcast.ss[0] = {
1139 streams, 2, 1, 0, InterLayerPredMode::kOn, std::vector<SpatialLayer>(),
1140 false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001141 fixture->RunWithAnalyzer(simulcast);
ilnik3dd5ad92017-02-09 04:58:53 -08001142}
1143
Jeremy Leconte4100d552020-09-11 18:02:36 +02001144TEST(FullStackTest, Simulcast_Vp8_3sl_Low) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001145 auto fixture = CreateVideoQualityTestFixture();
1146 ParamsWithLogging simulcast;
ilnik3dd5ad92017-02-09 04:58:53 -08001147 simulcast.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001148 simulcast.video[0] = SimulcastVp8VideoHigh();
ilnik2a8c2f52017-02-15 02:23:28 -08001149 simulcast.analyzer = {"simulcast_vp8_3sl_low", 0.0, 0.0,
ilnik3dd5ad92017-02-09 04:58:53 -08001150 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +02001151 simulcast.config->loss_percent = 0;
1152 simulcast.config->queue_delay_ms = 100;
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001153 ParamsWithLogging video_params_high;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001154 video_params_high.video[0] = SimulcastVp8VideoHigh();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001155 ParamsWithLogging video_params_medium;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001156 video_params_medium.video[0] = SimulcastVp8VideoMedium();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001157 ParamsWithLogging video_params_low;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001158 video_params_low.video[0] = SimulcastVp8VideoLow();
ilnik3dd5ad92017-02-09 04:58:53 -08001159
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +01001160 std::vector<VideoStream> streams = {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001161 VideoQualityTest::DefaultVideoStream(video_params_low, 0),
1162 VideoQualityTest::DefaultVideoStream(video_params_medium, 0),
1163 VideoQualityTest::DefaultVideoStream(video_params_high, 0)};
Sergey Silkin57027362018-05-15 09:12:05 +02001164 simulcast.ss[0] = {
1165 streams, 0, 1, 0, InterLayerPredMode::kOn, std::vector<SpatialLayer>(),
1166 false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001167 fixture->RunWithAnalyzer(simulcast);
ilnik3dd5ad92017-02-09 04:58:53 -08001168}
1169
Emircan Uysaler7c03bdc2019-01-16 15:07:56 -05001170// This test assumes ideal network conditions with target bandwidth being
1171// available and exercises WebRTC calls with a high target bitrate(100 Mbps).
1172// Android32 bots can't handle this high bitrate, so disable test for those.
1173#if defined(WEBRTC_ANDROID)
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001174#define MAYBE_High_Bitrate_With_Fake_Codec DISABLED_High_Bitrate_With_Fake_Codec
Emircan Uysaler7c03bdc2019-01-16 15:07:56 -05001175#else
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001176#define MAYBE_High_Bitrate_With_Fake_Codec High_Bitrate_With_Fake_Codec
Emircan Uysaler7c03bdc2019-01-16 15:07:56 -05001177#endif // defined(WEBRTC_ANDROID)
Jeremy Lecontec8850cb2020-09-10 20:46:33 +02001178TEST(FullStackTest, MAYBE_High_Bitrate_With_Fake_Codec) {
Emircan Uysaler7c03bdc2019-01-16 15:07:56 -05001179 auto fixture = CreateVideoQualityTestFixture();
1180 const int target_bitrate = 100000000;
1181 ParamsWithLogging generator;
1182 generator.call.send_side_bwe = true;
1183 generator.call.call_bitrate_config.min_bitrate_bps = target_bitrate;
1184 generator.call.call_bitrate_config.start_bitrate_bps = target_bitrate;
1185 generator.call.call_bitrate_config.max_bitrate_bps = target_bitrate;
1186 generator.video[0] = {true,
1187 360,
1188 240,
1189 30,
1190 target_bitrate / 2,
1191 target_bitrate,
1192 target_bitrate * 2,
1193 false,
1194 "FakeCodec",
1195 1,
1196 0,
1197 0,
1198 false,
1199 false,
1200 false,
1201 "Generator"};
1202 generator.analyzer = {"high_bitrate_with_fake_codec", 0.0, 0.0,
1203 kFullStackTestDurationSecs};
1204 fixture->RunWithAnalyzer(generator);
1205}
1206
oprypin743117f2017-09-15 05:24:24 -07001207#if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
1208// Fails on mobile devices:
ilnikf89a7382017-03-07 06:15:27 -08001209// https://bugs.chromium.org/p/webrtc/issues/detail?id=7301
Jeremy Leconte4100d552020-09-11 18:02:36 +02001210#define MAYBE_Largeroom_50thumb DISABLED_Largeroom_50thumb
ilnikf89a7382017-03-07 06:15:27 -08001211#else
Jeremy Leconte4100d552020-09-11 18:02:36 +02001212#define MAYBE_Largeroom_50thumb Largeroom_50thumb
ilnikf89a7382017-03-07 06:15:27 -08001213#endif
1214
Jeremy Leconte4100d552020-09-11 18:02:36 +02001215TEST(FullStackTest, MAYBE_Largeroom_50thumb) {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001216 auto fixture = CreateVideoQualityTestFixture();
1217 ParamsWithLogging large_room;
ilnika014cc52017-03-07 04:21:04 -08001218 large_room.call.send_side_bwe = true;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001219 large_room.video[0] = SimulcastVp8VideoHigh();
ilnika014cc52017-03-07 04:21:04 -08001220 large_room.analyzer = {"largeroom_50thumb", 0.0, 0.0,
1221 kFullStackTestDurationSecs};
Artem Titovf18b3522018-08-28 16:54:24 +02001222 large_room.config->loss_percent = 0;
1223 large_room.config->queue_delay_ms = 100;
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001224 ParamsWithLogging video_params_high;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001225 video_params_high.video[0] = SimulcastVp8VideoHigh();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001226 ParamsWithLogging video_params_medium;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001227 video_params_medium.video[0] = SimulcastVp8VideoMedium();
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001228 ParamsWithLogging video_params_low;
Rasmus Brandt3c589be2019-03-13 11:32:40 +01001229 video_params_low.video[0] = SimulcastVp8VideoLow();
ilnika014cc52017-03-07 04:21:04 -08001230
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +01001231 std::vector<VideoStream> streams = {
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001232 VideoQualityTest::DefaultVideoStream(video_params_low, 0),
1233 VideoQualityTest::DefaultVideoStream(video_params_medium, 0),
1234 VideoQualityTest::DefaultVideoStream(video_params_high, 0)};
ilnik98436952017-07-13 00:47:03 -07001235 large_room.call.num_thumbnails = 50;
Sergey Silkin57027362018-05-15 09:12:05 +02001236 large_room.ss[0] = {
1237 streams, 2, 1, 0, InterLayerPredMode::kOn, std::vector<SpatialLayer>(),
1238 false};
Patrik Höglundb6b29e02018-06-21 16:58:01 +02001239 fixture->RunWithAnalyzer(large_room);
ilnika014cc52017-03-07 04:21:04 -08001240}
1241
pbos@webrtc.orgaf8d5af2013-07-09 08:02:33 +00001242} // namespace webrtc