• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5AUTHOR = "kerl@google.com, chromeos-meetings@google.com"
6NAME = "video_WebRtcResolutionSwitching.perf"
7PURPOSE = "Test WebRTC by frequently switching between different resolutions"
8CRITERIA = "Fails if any video element gets a lower resolution than requested"
9ATTRIBUTES = "suite:hotrod"
10TIME = "MEDIUM"
11TEST_CATEGORY = "Performance"
12TEST_CLASS = "video"
13TEST_TYPE = "client"
14BUG_TEMPLATE = {
15    "labels": ["OS-Chrome"],
16    "components": ["OS>Kernel>Video"],
17}
18JOB_RETRIES = 2
19
20DOC = """
21This test starts 5 loopback peer connections, each with 4 streams with
22different resolutions. The test then switches randomly which of the streams are
23active for each connection, effectively flipping between different resolutions.
24
25The tests use a fake media stream - not a real camera.
26
27The test collects system metrics during the run. See go/cfm-perf-metrics
28for details about the metrics.
29"""
30
31job.run_test(
32        "video_WebRtcResolutionSwitching", mode = "performance", tag = "perf")
33
34