| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FAKE_AUDIO_MANAGER_H_ | 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| 6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "media/audio/audio_manager_base.h" | 11 #include "media/audio/audio_manager_base.h" |
| 12 #include "media/audio/fake_audio_input_stream.h" | 12 #include "media/audio/fake_audio_input_stream.h" |
| 13 #include "media/audio/fake_audio_output_stream.h" | 13 #include "media/audio/fake_audio_output_stream.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase { | 17 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase { |
| 18 public: | 18 public: |
| 19 FakeAudioManager(AudioLogFactory* audio_log_factory); | 19 FakeAudioManager( |
| 20 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 21 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
| 22 AudioLogFactory* audio_log_factory); |
| 20 | 23 |
| 21 // Implementation of AudioManager. | 24 // Implementation of AudioManager. |
| 22 bool HasAudioOutputDevices() override; | 25 bool HasAudioOutputDevices() override; |
| 23 bool HasAudioInputDevices() override; | 26 bool HasAudioInputDevices() override; |
| 24 | 27 |
| 25 // Implementation of AudioManagerBase. | 28 // Implementation of AudioManagerBase. |
| 26 AudioOutputStream* MakeLinearOutputStream( | 29 AudioOutputStream* MakeLinearOutputStream( |
| 27 const AudioParameters& params) override; | 30 const AudioParameters& params) override; |
| 28 AudioOutputStream* MakeLowLatencyOutputStream( | 31 AudioOutputStream* MakeLowLatencyOutputStream( |
| 29 const AudioParameters& params, | 32 const AudioParameters& params, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 const std::string& output_device_id, | 47 const std::string& output_device_id, |
| 45 const AudioParameters& input_params) override; | 48 const AudioParameters& input_params) override; |
| 46 | 49 |
| 47 private: | 50 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); | 51 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace media | 54 } // namespace media |
| 52 | 55 |
| 53 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 56 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| OLD | NEW |