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

Unified 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, 8 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/mock_cras_audio_handler.h
diff --git a/chromeos/audio/mock_cras_audio_handler.h b/chromeos/audio/mock_cras_audio_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..c665f0b34d7e4b9672ae5c8bbc8f4fb6dfc2f0fd
--- /dev/null
+++ b/chromeos/audio/mock_cras_audio_handler.h
@@ -0,0 +1,42 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_
+#define CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_
+
+#include "chromeos/audio/cras_audio_handler.h"
+
+namespace chromeos {
+
+// Mock class for CrasAudioHandler.
+class CHROMEOS_EXPORT MockCrasAudioHandler : public CrasAudioHandler {
+ public:
+ MockCrasAudioHandler();
+ virtual ~MockCrasAudioHandler();
+
+ virtual void AddAudioObserver(AudioObserver* observer) OVERRIDE;
+ virtual void RemoveAudioObserver(AudioObserver* observer) OVERRIDE;
+ virtual bool IsOutputMuted() OVERRIDE;
+ virtual bool IsInputMuted() OVERRIDE;
+ virtual int GetOutputVolumePercent() OVERRIDE;
+ virtual uint64 GetActiveOutputNode() const OVERRIDE;
+ virtual uint64 GetActiveInputNode() const OVERRIDE;
+ virtual void GetAudioDevices(AudioDeviceList* device_list) const OVERRIDE;
+ virtual bool GetActiveOutputDevice(AudioDevice* device) const OVERRIDE;
+ virtual bool has_alternative_input() const OVERRIDE;
+ virtual bool has_alternative_output() const OVERRIDE;
+ virtual void SetOutputVolumePercent(int volume_percent) OVERRIDE;
+ virtual void AdjustOutputVolumeByPercent(int adjust_by_percent) OVERRIDE;
+ virtual void SetOutputMute(bool mute_on) OVERRIDE;
+ virtual void SetInputMute(bool mute_on) OVERRIDE;
+ virtual void SetActiveOutputNode(uint64 node_id) OVERRIDE;
+ virtual void SetActiveInputNode(uint64 node_id) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockCrasAudioHandler);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_AUDIO_MOCK_CRAS_AUDIO_HANDLER_H_
« 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