# Copyright 2019 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 = 'The Chromium OS Authors,chromeos-audio@google.com' NAME = 'audio_CrasDevSwitchStress.input' ATTRIBUTES = "suite:audio" PURPOSE = 'Test device buffer can stay at reasonable level at repeated switching' CRITERIA = """ Fail if device buffer drifts too high. """ TIME='MEDIUM' TEST_CATEGORY = 'Functional' TEST_CLASS = "audio" TEST_TYPE = 'client' DOC = """ Test device buffer can stay at reasonable level under repeated switching. """ from autotest_lib.client.bin import utils from autotest_lib.client.cros.audio import audio_spec internal_mic_node = audio_spec.get_internal_mic_node( utils.get_board_type(), utils.get_board(), utils.get_platform(), utils.get_sku()) job.run_test('audio_CrasDevSwitchStress', type_a='MIC', type_b=internal_mic_node, pinned_type=internal_mic_node)