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

Side by Side Diff: chromeos/audio/mock_cras_audio_handler.h

Issue 14678004: cros: Enable new cras audio handler by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/audio/mock_cras_audio_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 SetActiveOutputNode(uint64 node_id) OVERRIDE;
34 virtual void SetActiveInputNode(uint64 node_id) OVERRIDE;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(MockCrasAudioHandler);
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/audio/mock_cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698