1# Copyright 2019 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 = 'The Chromium OS Authors,chromeos-audio@google.com'
6NAME = 'audio_CrasDevSwitchStress.input'
7ATTRIBUTES = "suite:audio"
8PURPOSE = 'Test device buffer can stay at reasonable level at repeated switching'
9CRITERIA = """
10Fail if device buffer drifts too high.
11"""
12TIME='MEDIUM'
13TEST_CATEGORY = 'Functional'
14TEST_CLASS = "audio"
15TEST_TYPE = 'client'
16
17DOC = """
18Test device buffer can stay at reasonable level under repeated switching.
19"""
20
21from autotest_lib.client.bin import utils
22from autotest_lib.client.cros.audio import audio_spec
23internal_mic_node = audio_spec.get_internal_mic_node(
24    utils.get_board_type(), utils.get_board(), utils.get_platform(), utils.get_sku())
25
26job.run_test('audio_CrasDevSwitchStress',
27             type_a='MIC',
28             type_b=internal_mic_node,
29             pinned_type=internal_mic_node)
30