1# Copyright (c) 2011 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'
6NAME = 'audio_CRASFormatConversion'
7PURPOSE = 'Test playing audio with the CRAS test client.'
8CRITERIA = """
9Check that converting between different sample rates doesn't crash.
10"""
11TIME='SHORT'
12TEST_CATEGORY = 'PLAYBACKCAPTURE'
13TEST_CLASS = 'audio'
14TEST_TYPE = 'client'
15ATTRIBUTES = "suite:audio"
16DEPENDENCIES = 'audio_loopback_dongle'
17
18DOC = """
19NOTE: For this test to pass you need to have the line out looped back to mic-in.
20This can be through a 3.5mm male-to-male cable or a loopback dongle depending on
21your device.
22"""
23
24TEST_SAMPLE_RATES = [
25        8000, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000]
26
27job.run_test(
28        'audio_CRASFormatConversion',
29        test_sample_rates=TEST_SAMPLE_RATES,
30        constraints=['min_rms_value > 0.05'])
31