Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium 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 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_INFO_ACCESSOR_FOR_TESTS_H_ | |
| 6 #define MEDIA_AUDIO_AUDIO_DEVICE_INFO_ACCESSOR_FOR_TESTS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "media/audio/audio_device_description.h" | |
| 11 #include "media/base/audio_parameters.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 class AudioManager; | |
| 16 | |
| 17 // Accessor for protected device info-related AudioManager. To be used in media | |
| 18 // unit tests only. | |
| 19 class MEDIA_EXPORT AudioDeviceInfoAccessorForTests { | |
|
Max Morin
2017/04/11 07:27:08
I still think having a bunch of friends would be e
| |
| 20 public: | |
| 21 explicit AudioDeviceInfoAccessorForTests(AudioManager* audio_manager); | |
| 22 | |
| 23 bool HasAudioOutputDevices(); | |
| 24 | |
| 25 bool HasAudioInputDevices(); | |
| 26 | |
| 27 void GetAudioInputDeviceDescriptions( | |
| 28 AudioDeviceDescriptions* device_descriptions); | |
| 29 | |
| 30 void GetAudioOutputDeviceDescriptions( | |
| 31 AudioDeviceDescriptions* device_descriptions); | |
| 32 | |
| 33 AudioParameters GetDefaultOutputStreamParameters(); | |
| 34 | |
| 35 AudioParameters GetOutputStreamParameters(const std::string& device_id); | |
| 36 | |
| 37 AudioParameters GetInputStreamParameters(const std::string& device_id); | |
| 38 | |
| 39 std::string GetAssociatedOutputDeviceID(const std::string& input_device_id); | |
| 40 | |
| 41 private: | |
| 42 AudioManager* const audio_manager_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(AudioDeviceInfoAccessorForTests); | |
| 45 }; | |
| 46 | |
| 47 } // namespace media | |
| 48 | |
| 49 #endif // MEDIA_AUDIO_AUDIO_DEVICE_INFO_ACCESSOR_FOR_TESTS_H_ | |
| OLD | NEW |