Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: media/audio/mock_audio_manager.h

Issue 2763383002: Switching AudioInputDeviceManager from using AudioManager interface to AudioSystem one. (Closed)
Patch Set: WeakPtr removed; combined GetInputDeviceInfo operation introduced Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/audio/mock_audio_manager.h
diff --git a/media/audio/mock_audio_manager.h b/media/audio/mock_audio_manager.h
index 69e0d1496ed022a37cd159da08c1bd7c09d73662..781729a56ca02f7c4b32d33d16b9a1f5fb97a6f8 100644
--- a/media/audio/mock_audio_manager.h
+++ b/media/audio/mock_audio_manager.h
@@ -26,6 +26,8 @@ class MockAudioManager : public AudioManager {
using UniquePtr = std::unique_ptr<MockAudioManager, Deleter>;
using GetDeviceDescriptionsCallback =
base::RepeatingCallback<void(AudioDeviceDescriptions*)>;
+ using GetAssociatedOutputDeviceIDCallback =
+ base::RepeatingCallback<std::string(const std::string&)>;
explicit MockAudioManager(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
@@ -90,6 +92,8 @@ class MockAudioManager : public AudioManager {
GetDeviceDescriptionsCallback callback);
void SetOutputDeviceDescriptionsCallback(
GetDeviceDescriptionsCallback callback);
+ void SetAssociatedOutputDeviceIDCallback(
+ GetAssociatedOutputDeviceIDCallback callback);
protected:
~MockAudioManager() override;
@@ -104,6 +108,7 @@ class MockAudioManager : public AudioManager {
bool has_output_devices_ = true;
GetDeviceDescriptionsCallback get_input_device_descriptions_cb_;
GetDeviceDescriptionsCallback get_output_device_descriptions_cb_;
+ GetAssociatedOutputDeviceIDCallback get_associated_output_device_id_cb_;
DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
};

Powered by Google App Engine
This is Rietveld 408576698