# Copyright 2016 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.

from autotest_lib.server import utils

AUTHOR = "chromeos-chameleon"
NAME = "audio_AudioWebRTCLoopback.quality"
PURPOSE = "Remotely controlled USB and headphone WebRTC loopback audio test."
CRITERIA = "This test will fail if the captured audio does not match original file."
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "audio"
TEST_TYPE = "server"
ATTRIBUTES = "suite:chameleon_audio_nightly"
DEPENDENCIES = "chameleon, audio_board, audio_box"
JOB_RETRIES = 2

DOC = """
This test remotely tests USB and headphone WebRTC loopback audio function with quality check.
"""

args_dict = utils.args_to_dict(args)
chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)

def run(machine):
    host = hosts.create_host(machine, chameleon_args=chameleon_args)
    job.run_test("audio_AudioWebRTCLoopback", host=host, check_quality=True,
                 tag="quality")

parallel_simple(run, machines)
