OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 const media::AudioParameters& params, | 40 const media::AudioParameters& params, |
41 const std::string& device_id, | 41 const std::string& device_id, |
42 const LogCallback& log_callback) override; | 42 const LogCallback& log_callback) override; |
43 | 43 |
44 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 44 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
45 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 45 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
46 | 46 |
47 std::unique_ptr<AudioLog> CreateAudioLog( | 47 std::unique_ptr<AudioLog> CreateAudioLog( |
48 AudioLogFactory::AudioComponent component) override; | 48 AudioLogFactory::AudioComponent component) override; |
49 | 49 |
50 void InitializeOutputDebugRecording( | 50 void InitializeOutputDebugRecording() override; |
51 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) override; | |
52 void EnableOutputDebugRecording( | 51 void EnableOutputDebugRecording( |
53 const base::FilePath& base_file_name) override; | 52 const base::FilePath& base_file_name) override; |
54 void DisableOutputDebugRecording() override; | 53 void DisableOutputDebugRecording() override; |
55 | 54 |
56 const char* GetName() override; | 55 const char* GetName() override; |
57 | 56 |
58 // Setters to emulate desired in-test behavior. | 57 // Setters to emulate desired in-test behavior. |
59 void SetInputStreamParameters(const AudioParameters& params); | 58 void SetInputStreamParameters(const AudioParameters& params); |
60 void SetOutputStreamParameters(const AudioParameters& params); | 59 void SetOutputStreamParameters(const AudioParameters& params); |
61 void SetDefaultOutputStreamParameters(const AudioParameters& params); | 60 void SetDefaultOutputStreamParameters(const AudioParameters& params); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 GetDeviceDescriptionsCallback get_input_device_descriptions_cb_; | 101 GetDeviceDescriptionsCallback get_input_device_descriptions_cb_; |
103 GetDeviceDescriptionsCallback get_output_device_descriptions_cb_; | 102 GetDeviceDescriptionsCallback get_output_device_descriptions_cb_; |
104 GetAssociatedOutputDeviceIDCallback get_associated_output_device_id_cb_; | 103 GetAssociatedOutputDeviceIDCallback get_associated_output_device_id_cb_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); | 105 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); |
107 }; | 106 }; |
108 | 107 |
109 } // namespace media. | 108 } // namespace media. |
110 | 109 |
111 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 110 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
OLD | NEW |