• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
12TIME = "SHORT"
13TEST_CATEGORY = "General"
14TEST_CLASS = "audio"
15TEST_TYPE = "client"
16DEPENDENCIES = 'audio_loopback_dongle'
17
18DOC = """
19Test that the sound from media files can be heard by recording from mic in
20by seeking forward and back
21"""
22
23# Media formats to be tested.
24TEST_DURATION = 5
25TEST_FILE = 'audio_SeekAudioFeedbackaudio.mp3'
26
27constraints = ['%s_rms_value > 0.001' % TEST_FILE.replace('.', '_') ]
28
29job.run_test('audio_SeekAudioFeedback',
30             test_file=TEST_FILE,
31             test_duration=TEST_DURATION,
32             constraints=constraints)
33