Fix the use of SocketDataProviders in HttpNetworkTransactionTest.GenerateAuthToken
[chromium-blink-merge.git] / chromeos / dbus / fake_amplifier_client.h
blob48d1bb6ca022f9da8f6474617b418830c72e3c5e
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_AMPLIFIER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_AMPLIFIER_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/dbus/amplifier_client.h"
11 #include "chromeos/dbus/dbus_client.h"
13 namespace chromeos {
15 // A fake implementation of AmplifierClient. Invokes callbacks immediately.
16 class CHROMEOS_EXPORT FakeAmplifierClient : public AmplifierClient {
17 public:
18 FakeAmplifierClient();
19 ~FakeAmplifierClient() override;
21 // DBusClient overrides:
22 void Init(dbus::Bus* bus) override;
24 // AmplifierClient 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 SetVolume(double db_spl,
31 const VoidDBusMethodCallback& callback) override;
33 private:
34 DISALLOW_COPY_AND_ASSIGN(FakeAmplifierClient);
37 } // namespace chromeos
39 #endif // CHROMEOS_DBUS_FAKE_AMPLIFIER_CLIENT_H_