Move VariationsRegistrySyncerWin to ChromeVariationsServiceClient
[chromium-blink-merge.git] / chromeos / dbus / fake_audio_dsp_client.h
blob05181ca7b2bf2c02bca7b4ed024fb05f59d33b2a
1 // Copyright 2015 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.
5 #ifndef CHROMEOS_DBUS_FAKE_AUDIO_DSP_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_AUDIO_DSP_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/dbus/audio_dsp_client.h"
11 #include "chromeos/dbus/dbus_client.h"
13 namespace chromeos {
15 // A fake implementation of AudioDspClient. Invokes callbacks immediately.
16 class CHROMEOS_EXPORT FakeAudioDspClient : public AudioDspClient {
17 public:
18 FakeAudioDspClient();
19 ~FakeAudioDspClient() override;
21 // DBusClient overrides:
22 void Init(dbus::Bus* bus) override;
24 // AudioDspClient overrides:
25 void AddObserver(Observer* observer) override;
26 void RemoveObserver(Observer* observer) override;
27 void Initialize(const BoolDBusMethodCallback& callback) override;
28 void SetStandbyMode(bool standby,
29 const VoidDBusMethodCallback& callback) override;
30 void SetNightMode(bool standby,
31 const VoidDBusMethodCallback& callback) override;
32 void GetNightMode(const BoolDBusMethodCallback& callback) override;
33 void SetTreble(double db_fs, const VoidDBusMethodCallback& callback) override;
34 void GetTreble(const DoubleDBusMethodCallback& callback) override;
35 void SetBass(double db_fs, const VoidDBusMethodCallback& callback) override;
36 void GetBass(const DoubleDBusMethodCallback& callback) override;
37 void GetCapabilitiesOEM(
38 const ThreeStringDBusMethodCallback& callback) override;
39 void SetCapabilitiesOEM(uint32 speaker_id,
40 const std::string& speaker_capabilities,
41 const std::string& driver_capabilities,
42 const VoidDBusMethodCallback& callback) override;
43 void GetFilterConfigOEM(uint32 speaker_id,
44 const TwoStringDBusMethodCallback& callback) override;
45 void SetFilterConfigOEM(const std::string& speaker_config,
46 const std::string& driver_config,
47 const VoidDBusMethodCallback& callback) override;
48 void SetSourceType(uint16 source_type,
49 const VoidDBusMethodCallback& callback) override;
50 void AmplifierVolumeChanged(double db_spl,
51 const VoidDBusMethodCallback& callback) override;
53 private:
54 DISALLOW_COPY_AND_ASSIGN(FakeAudioDspClient);
57 } // namespace chromeos
59 #endif // CHROMEOS_DBUS_FAKE_AUDIO_DSP_CLIENT_H_