• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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 Audio Team, chromeos-audio@google.com'
6NAME = 'audio_CrasPinnedStream'
7PURPOSE = """
8Test that all audio recording still works when multiple devices records
9simultaneously. This is essential for enabling assistant.
10"""
11CRITERIA = """
12Check if the internal mic can record samples while the headset is also
13recording.
14"""
15ATTRIBUTES = "suite:audio, suite:partners"
16TIME = 'SHORT'
17TEST_CATEGORY = 'PLAYBACKCAPTURE'
18TEST_CLASS = "audio"
19TEST_TYPE = 'client'
20DEPENDENCIES = 'audio_loopback_dongle'
21
22DOC = """
23Test that we can record from multiple devices simultaneously.
24
25NOTE: For this test to pass you need to have the line out looped back to mic-in.
26This can be through a 3.5mm male-to-male cable or a loopback dongle depending on
27your device.
28"""
29
30job.run_test('audio_CrasPinnedStream', constraints=['rms_value > 0.05'])
31