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_WebRtcMainFeedSwitching.perf"
7PURPOSE = """Measure performance when srcObject of video tags are frequently
8swapped"""
9CRITERIA = "Fails if Chrome crashes"
10ATTRIBUTES = "suite:hotrod"
11TIME = "MEDIUM"
12TEST_CATEGORY = "Performance"
13TEST_CLASS = "video"
14TEST_TYPE = "client"
15BUG_TEMPLATE = {
16    "labels": ["OS-Chrome"],
17    "components": ["OS>Kernel>Video"],
18}
19JOB_RETRIES = 2
20
21DOC = """
22This test starts 5 high resolution (1280x720) loopback peer connections. Four
23of the video elements are styled to be small, thumbnail sized (182x136) and one
24is in its native size.  This is intended to simulate a video conference with
25one main feed and several smaller feeds.
26
27The test then frequently swaps the sourceObject of the main feed with a
28randomly chosen smaller feed.
29
30The tests use a fake media stream - not a real camera.
31
32The test collects system metrics during the run. See go/cfm-perf-metrics
33for details about the metrics.
34"""
35
36job.run_test(
37        "video_WebRtcMainFeedSwitching", mode = "performance", tag = "perf")
38
39