1 # Copyright 2017 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 AUTHOR = "kerl (a] google.com, chromeos-meetings (a] google.com" 6 NAME = "video_WebRtcResolutionSwitching" 7 PURPOSE = "Stress WebRTC by frequently switching between different resolutions" 8 CRITERIA = "Fails if any video element gets a lower resolution than requested" 9 ATTRIBUTES = "suite:hotrod" 10 TIME = "SHORT" 11 TEST_CATEGORY = "Stress" 12 TEST_CLASS = "video" 13 TEST_TYPE = "client" 14 BUG_TEMPLATE = { 15 "labels": ["OS-Chrome"], 16 "components": ["OS>Kernel>Video"], 17 } 18 JOB_RETRIES = 2 19 20 DOC = """ 21 This test starts 5 loopback peer connections, each with 4 streams with 22 different resolutions. The test then switches randomly which of the streams are 23 active for each connection, effectively flipping between different resolutions. 24 25 If any of the video elements gets a resolution that is lower than the lowest we 26 request, the test fails. 27 28 The tests use a fake media stream - not a real camera. 29 30 This test acts as a stress test and ensures that we do not encounter issues 31 such as https://crbug.com/758850 again. 32 """ 33 34 job.run_test("video_WebRtcResolutionSwitching") 35 36