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

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

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chromeos/attestation/mock_attestation_flow.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_ 5 #ifndef CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_
6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_ 6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_
7 7
8 #include "chromeos/audio/audio_devices_pref_handler.h" 8 #include "chromeos/audio/audio_devices_pref_handler.h"
9 9
10 #include <map> 10 #include <map>
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 struct AudioDevice; 14 struct AudioDevice;
15 15
16 // Stub class for AudioDevicesPrefHandler, used for testing. 16 // Stub class for AudioDevicesPrefHandler, used for testing.
17 class CHROMEOS_EXPORT AudioDevicesPrefHandlerStub 17 class CHROMEOS_EXPORT AudioDevicesPrefHandlerStub
18 : public AudioDevicesPrefHandler { 18 : public AudioDevicesPrefHandler {
19 public: 19 public:
20 typedef std::map<uint64, bool> AudioDeviceMute; 20 typedef std::map<uint64, bool> AudioDeviceMute;
21 typedef std::map<uint64, int> AudioDeviceVolumeGain; 21 typedef std::map<uint64, int> AudioDeviceVolumeGain;
22 22
23 AudioDevicesPrefHandlerStub(); 23 AudioDevicesPrefHandlerStub();
24 24
25 virtual double GetOutputVolumeValue(const AudioDevice* device) OVERRIDE; 25 virtual double GetOutputVolumeValue(const AudioDevice* device) override;
26 virtual double GetInputGainValue(const AudioDevice* device) OVERRIDE; 26 virtual double GetInputGainValue(const AudioDevice* device) override;
27 virtual void SetVolumeGainValue(const AudioDevice& device, 27 virtual void SetVolumeGainValue(const AudioDevice& device,
28 double value) OVERRIDE; 28 double value) override;
29 virtual bool GetMuteValue(const AudioDevice& device) OVERRIDE; 29 virtual bool GetMuteValue(const AudioDevice& device) override;
30 virtual void SetMuteValue(const AudioDevice& device, bool mute_on) OVERRIDE; 30 virtual void SetMuteValue(const AudioDevice& device, bool mute_on) override;
31 virtual bool GetAudioCaptureAllowedValue() OVERRIDE; 31 virtual bool GetAudioCaptureAllowedValue() override;
32 virtual bool GetAudioOutputAllowedValue() OVERRIDE; 32 virtual bool GetAudioOutputAllowedValue() override;
33 virtual void AddAudioPrefObserver(AudioPrefObserver* observer) OVERRIDE; 33 virtual void AddAudioPrefObserver(AudioPrefObserver* observer) override;
34 virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) OVERRIDE; 34 virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) override;
35 35
36 protected: 36 protected:
37 virtual ~AudioDevicesPrefHandlerStub(); 37 virtual ~AudioDevicesPrefHandlerStub();
38 38
39 private: 39 private:
40 AudioDeviceMute audio_device_mute_map_; 40 AudioDeviceMute audio_device_mute_map_;
41 AudioDeviceVolumeGain audio_device_volume_gain_map_; 41 AudioDeviceVolumeGain audio_device_volume_gain_map_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerStub); 43 DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerStub);
44 }; 44 };
45 45
46 } // namespace chromeos 46 } // namespace chromeos
47 47
48 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_ 48 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_STUB_H_
OLDNEW
« no previous file with comments | « chromeos/attestation/mock_attestation_flow.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698