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

Unified Diff: webrtc/video/full_stack_tests.cc

Issue 2745523002: Add FullStack test for simulcast screenshare mode. (Closed)
Patch Set: Implement Stefan@ comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/video/full_stack_tests.cc
diff --git a/webrtc/video/full_stack_tests.cc b/webrtc/video/full_stack_tests.cc
index e94acdae32993050d226a826fcc064f671fd2be4..e59280a05561c681ad43d91e413f998c9b862164 100644
--- a/webrtc/video/full_stack_tests.cc
+++ b/webrtc/video/full_stack_tests.cc
@@ -9,6 +9,7 @@
*/
#include <stdio.h>
+#include "webrtc/test/field_trial.h"
#include "webrtc/test/gtest.h"
#include "webrtc/video/video_quality_test.h"
@@ -308,6 +309,32 @@ TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) {
RunTest(screenshare);
}
+TEST_F(FullStackTest, ScreenshareSlidesVP8_3TL_Simulcast) {
+ test::ScopedFieldTrials field_trial("WebRTC-SimulcastScreenshare/Enabled/");
+ VideoQualityTest::Params screenshare;
+ screenshare.call.send_side_bwe = true;
+ screenshare.screenshare = {true, 10};
+ screenshare.video = {true, 1850, 1110, 5, 800000, 2500000,
+ 2500000, false, "VP8", 3, 2, 400000,
+ false, false, "", ""};
+ screenshare.analyzer = {"screenshare_slides_simulcast", 0.0, 0.0,
+ kFullStackTestDurationSecs};
+ VideoQualityTest::Params screenshare_params_high;
+ screenshare_params_high.video = {true, 1850, 1110, 5, 800000, 2500000,
+ 2500000, false, "VP8", 3, 0, 400000,
+ false, false, "", ""};
+ VideoQualityTest::Params screenshare_params_low;
+ screenshare_params_low.video = {true, 1850, 1110, 5, 50000, 200000,
+ 2000000, false, "VP8", 2, 0, 400000,
+ false, false, "", ""};
+
+ std::vector<VideoStream> streams = {
+ DefaultVideoStream(screenshare_params_low),
+ DefaultVideoStream(screenshare_params_high)};
+ screenshare.ss = {streams, 1, 1, 0};
+ RunTest(screenshare);
+}
+
TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) {
VideoQualityTest::Params config;
config.call.send_side_bwe = true;
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.cc ('k') | webrtc/video/video_quality_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698