# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

AUTHOR = "malmnas@google.com, chromeos-meetings@google.com"
NAME = "webrtc_PausePlayPeerConnections.audio_perf"
PURPOSE = "Performance test of frequent pause and plays of peer connections"
CRITERIA = "Fails if the tab freezes during the test"
ATTRIBUTES = "suite:hotrod, suite:bluestreak, suite:bluestreak-perbuild"
TIME = "MEDIUM"
TEST_CATEGORY = "Performance"
TEST_CLASS = "audio"
TEST_TYPE = "client"
BUG_TEMPLATE = {
    "labels": ["OS-Chrome"],
    "components": ["OS>Kernel>Audio"],
}

DOC = """
This test starts 10 peer connections with audio streams.
The tests randomly pauses and plays the streams.

The test collects system metrics during the run. See go/cfm-perf-metrics
for details about the metrics.
"""

job.run_test(
        "webrtc_PausePlayPeerConnections",
        mode = 'performance',
        element_type = 'audio',
        tag = 'audio_perf')