1 # Copyright (c) 2014 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 5 AUTHOR = "Chromium OS Project" 6 NAME = "audio_SeekAudioFeedback" 7 PURPOSE = "Verifies audio output for seeking forward and back" 8 CRITERIA = """ 9 This test will fail if audio file sound is not audible after seek. 10 """ 11 ATTRIBUTES = "suite:audio" 12 SUITE = "audio" 13 TIME = "SHORT" 14 TEST_CATEGORY = "General" 15 TEST_CLASS = "audio" 16 TEST_TYPE = "client" 17 DEPENDENCIES = 'audio_loopback_dongle' 18 19 DOC = """ 20 Test that the sound from media files can be heard by recording from mic in 21 by seeking forward and back 22 """ 23 24 # Media formats to be tested. 25 TEST_DURATION = 5 26 TEST_FILE = 'audio_SeekAudioFeedbackaudio.mp3' 27 28 constraints = ['%s_rms_value > 0.001' % TEST_FILE.replace('.', '_') ] 29 30 job.run_test('audio_SeekAudioFeedback', 31 test_file=TEST_FILE, 32 test_duration=TEST_DURATION, 33 constraints=constraints) 34