OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 | 11 |
| 12 #include "webrtc/test/field_trial.h" |
12 #include "webrtc/test/gtest.h" | 13 #include "webrtc/test/gtest.h" |
13 #include "webrtc/video/video_quality_test.h" | 14 #include "webrtc/video/video_quality_test.h" |
14 | 15 |
15 namespace webrtc { | 16 namespace webrtc { |
16 | 17 |
17 static const int kFullStackTestDurationSecs = 45; | 18 static const int kFullStackTestDurationSecs = 45; |
18 | 19 |
19 class FullStackTest : public VideoQualityTest { | 20 class FullStackTest : public VideoQualityTest { |
20 public: | 21 public: |
21 void RunTest(const VideoQualityTest::Params ¶ms) { | 22 void RunTest(const VideoQualityTest::Params ¶ms) { |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 VideoQualityTest::Params screenshare; | 302 VideoQualityTest::Params screenshare; |
302 screenshare.call.send_side_bwe = true; | 303 screenshare.call.send_side_bwe = true; |
303 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, | 304 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
304 "VP8", 2, 1, 400000, false, false, "", ""}; | 305 "VP8", 2, 1, 400000, false, false, "", ""}; |
305 screenshare.screenshare = {true, 10}; | 306 screenshare.screenshare = {true, 10}; |
306 screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, | 307 screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, |
307 kFullStackTestDurationSecs}; | 308 kFullStackTestDurationSecs}; |
308 RunTest(screenshare); | 309 RunTest(screenshare); |
309 } | 310 } |
310 | 311 |
| 312 TEST_F(FullStackTest, ScreenshareSlidesVP8_3TL_Simulcast) { |
| 313 test::ScopedFieldTrials field_trial("WebRTC-SimulcastScreenshare/Enabled/"); |
| 314 VideoQualityTest::Params screenshare; |
| 315 screenshare.call.send_side_bwe = true; |
| 316 screenshare.screenshare = {true, 10}; |
| 317 screenshare.video = {true, 1850, 1110, 5, 800000, 2500000, |
| 318 2500000, false, "VP8", 3, 2, 400000, |
| 319 false, false, "", ""}; |
| 320 screenshare.analyzer = {"screenshare_slides_simulcast", 0.0, 0.0, |
| 321 kFullStackTestDurationSecs}; |
| 322 VideoQualityTest::Params screenshare_params_high; |
| 323 screenshare_params_high.video = {true, 1850, 1110, 5, 800000, 2500000, |
| 324 2500000, false, "VP8", 3, 0, 400000, |
| 325 false, false, "", ""}; |
| 326 VideoQualityTest::Params screenshare_params_low; |
| 327 screenshare_params_low.video = {true, 1850, 1110, 5, 50000, 200000, |
| 328 2000000, false, "VP8", 2, 0, 400000, |
| 329 false, false, "", ""}; |
| 330 |
| 331 std::vector<VideoStream> streams = { |
| 332 DefaultVideoStream(screenshare_params_low), |
| 333 DefaultVideoStream(screenshare_params_high)}; |
| 334 screenshare.ss = {streams, 1, 1, 0}; |
| 335 RunTest(screenshare); |
| 336 } |
| 337 |
311 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { | 338 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
312 VideoQualityTest::Params config; | 339 VideoQualityTest::Params config; |
313 config.call.send_side_bwe = true; | 340 config.call.send_side_bwe = true; |
314 config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, false, | 341 config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, false, |
315 "VP8", 2, 1, 400000, false, false, "", ""}; | 342 "VP8", 2, 1, 400000, false, false, "", ""}; |
316 config.screenshare = {true, 10, 2}; | 343 config.screenshare = {true, 10, 2}; |
317 config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, | 344 config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, |
318 kFullStackTestDurationSecs}; | 345 kFullStackTestDurationSecs}; |
319 RunTest(config); | 346 RunTest(config); |
320 } | 347 } |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), | 585 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
559 DefaultVideoStream(video_params_medium), | 586 DefaultVideoStream(video_params_medium), |
560 DefaultVideoStream(video_params_high)}; | 587 DefaultVideoStream(video_params_high)}; |
561 large_room.num_thumbnails = 50; | 588 large_room.num_thumbnails = 50; |
562 large_room.ss = {streams, 2, 1, 0}; | 589 large_room.ss = {streams, 2, 1, 0}; |
563 RunTest(large_room); | 590 RunTest(large_room); |
564 } | 591 } |
565 | 592 |
566 | 593 |
567 } // namespace webrtc | 594 } // namespace webrtc |
OLD | NEW |