| OLD | NEW |
| 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_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/cras_audio_client.h" | 12 #include "chromeos/dbus/cras_audio_client.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 class CrasAudioHandlerTest; | |
| 17 | |
| 18 // The CrasAudioClient implementation used on Linux desktop. | 16 // The CrasAudioClient implementation used on Linux desktop. |
| 19 class CHROMEOS_EXPORT FakeCrasAudioClient : public CrasAudioClient { | 17 class CHROMEOS_EXPORT FakeCrasAudioClient : public CrasAudioClient { |
| 20 public: | 18 public: |
| 21 FakeCrasAudioClient(); | 19 FakeCrasAudioClient(); |
| 22 ~FakeCrasAudioClient() override; | 20 ~FakeCrasAudioClient() override; |
| 23 | 21 |
| 24 // CrasAudioClient overrides: | 22 // CrasAudioClient overrides: |
| 25 void Init(dbus::Bus* bus) override; | 23 void Init(dbus::Bus* bus) override; |
| 26 void AddObserver(Observer* observer) override; | 24 void AddObserver(Observer* observer) override; |
| 27 void RemoveObserver(Observer* observer) override; | 25 void RemoveObserver(Observer* observer) override; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // SetOutputNodeVolume fake dbus call. | 82 // SetOutputNodeVolume fake dbus call. |
| 85 bool notify_volume_change_with_delay_ = false; | 83 bool notify_volume_change_with_delay_ = false; |
| 86 base::ObserverList<Observer> observers_; | 84 base::ObserverList<Observer> observers_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); | 86 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace chromeos | 89 } // namespace chromeos |
| 92 | 90 |
| 93 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 91 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |