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

Side by Side Diff: media/audio/mock_audio_manager.h

Issue 1186293003: Implement HasInputDevices in CrasAudioManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move audio_manager to be a regular member of CrasAudioManager. Fix InitializeForTesting Created 5 years, 5 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 unified diff | Download patch
OLDNEW
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 "media/audio/audio_manager.h" 8 #include "media/audio/audio_manager.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const std::string& device_id) override; 60 const std::string& device_id) override;
61 AudioParameters GetInputStreamParameters( 61 AudioParameters GetInputStreamParameters(
62 const std::string& device_id) override; 62 const std::string& device_id) override;
63 std::string GetAssociatedOutputDeviceID( 63 std::string GetAssociatedOutputDeviceID(
64 const std::string& input_device_id) override; 64 const std::string& input_device_id) override;
65 65
66 scoped_ptr<AudioLog> CreateAudioLog( 66 scoped_ptr<AudioLog> CreateAudioLog(
67 AudioLogFactory::AudioComponent component) override; 67 AudioLogFactory::AudioComponent component) override;
68 68
69 void SetHasKeyboardMic() override; 69 void SetHasKeyboardMic() override;
70 void SetHasInputDevices(bool has_input_devices) override;
70 71
71 protected: 72 protected:
72 ~MockAudioManager() override; 73 ~MockAudioManager() override;
73 74
74 private: 75 private:
75 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 76 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); 78 DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
78 }; 79 };
79 80
80 } // namespace media. 81 } // namespace media.
81 82
82 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ 83 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698