| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_ | |
| 6 #define CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_ | |
| 7 | |
| 8 #include "chromeos/audio/cras_audio_handler.h" | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // Mock class for CrasAudioHandler. | |
| 13 class CHROMEOS_EXPORT MockCrasAudioHandler : public CrasAudioHandler { | |
| 14 public: | |
| 15 MockCrasAudioHandler(); | |
| 16 virtual ~MockCrasAudioHandler(); | |
| 17 | |
| 18 virtual void AddAudioObserver(AudioObserver* observer) OVERRIDE; | |
| 19 virtual void RemoveAudioObserver(AudioObserver* observer) OVERRIDE; | |
| 20 virtual bool IsOutputMuted() OVERRIDE; | |
| 21 virtual bool IsInputMuted() OVERRIDE; | |
| 22 virtual int GetOutputVolumePercent() OVERRIDE; | |
| 23 virtual uint64 GetActiveOutputNode() const OVERRIDE; | |
| 24 virtual uint64 GetActiveInputNode() const OVERRIDE; | |
| 25 virtual void GetAudioDevices(AudioDeviceList* device_list) const OVERRIDE; | |
| 26 virtual bool GetActiveOutputDevice(AudioDevice* device) const OVERRIDE; | |
| 27 virtual bool has_alternative_input() const OVERRIDE; | |
| 28 virtual bool has_alternative_output() const OVERRIDE; | |
| 29 virtual void SetOutputVolumePercent(int volume_percent) OVERRIDE; | |
| 30 virtual void AdjustOutputVolumeByPercent(int adjust_by_percent) OVERRIDE; | |
| 31 virtual void SetOutputMute(bool mute_on) OVERRIDE; | |
| 32 virtual void SetInputMute(bool mute_on) OVERRIDE; | |
| 33 virtual void SwitchToDevice(const AudioDevice& device) OVERRIDE; | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(MockCrasAudioHandler); | |
| 37 }; | |
| 38 | |
| 39 } // namespace chromeos | |
| 40 | |
| 41 #endif // CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_ | |
| OLD | NEW |