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