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

Unified Diff: media/audio/mock_audio_manager.h

Issue 2692203003: Switching AudioOutputAuthorizationHandler from using AudioManager interface to AudioSystem one. (Closed)
Patch Set: AudioSystem comments updated according to discussion with tommi@ Created 3 years, 10 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 ae5bd50df95b0c4f06f516c423219ca0334dc706..619398d0b8635e4148f2cfcdc59eb3d811a814b5 100644
--- a/media/audio/mock_audio_manager.h
+++ b/media/audio/mock_audio_manager.h
@@ -72,16 +72,23 @@ class MockAudioManager : public AudioManager {
const char* GetName() override;
// Setters to emulate desired in-test behavior.
- void SetInputStreamParameters(const AudioParameters& input_params);
+ void SetInputStreamParameters(const AudioParameters& params);
+ void SetOutputStreamParameters(const AudioParameters& params);
+ void SetDefaultOutputStreamParameters(const AudioParameters& params);
void SetHasInputDevices(bool has_input_devices);
+ void SetHasOutputDevices(bool has_output_devices);
protected:
~MockAudioManager() override;
private:
friend class base::DeleteHelper<MockAudioManager>;
+
AudioParameters input_params_;
+ AudioParameters output_params_;
+ AudioParameters default_output_params_;
bool has_input_devices_ = true;
+ bool has_output_devices_ = true;
DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
};

Powered by Google App Engine
This is Rietveld 408576698