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" 16SUITE = 'audio' 17DEPENDENCIES = 'audio_loopback_dongle' 18 19DOC = """ 20NOTE: For this test to pass you need to have the line out looped back to mic-in. 21This can be through a 3.5mm male-to-male cable or a loopback dongle depending on 22your device. 23""" 24 25TEST_SAMPLE_RATES = [ 26 8000, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000] 27 28job.run_test( 29 'audio_CRASFormatConversion', 30 test_sample_rates=TEST_SAMPLE_RATES, 31 constraints=['min_rms_value > 0.05']) 32