| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BLUETOOTH_MEDIA_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 #include "chromeos/dbus/bluetooth_media_client.h" | 11 #include "chromeos/dbus/bluetooth_media_client.h" |
| 12 #include "dbus/object_path.h" | 12 #include "dbus/object_path.h" |
| 13 | 13 |
| 14 using dbus::ObjectPath; |
| 15 |
| 14 namespace chromeos { | 16 namespace chromeos { |
| 15 | 17 |
| 16 class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient { | 18 class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient { |
| 17 public: | 19 public: |
| 18 FakeBluetoothMediaClient(); | 20 FakeBluetoothMediaClient(); |
| 19 ~FakeBluetoothMediaClient() override; | 21 ~FakeBluetoothMediaClient() override; |
| 20 | 22 |
| 21 // DBusClient override. | 23 // DBusClient override. |
| 22 void Init(dbus::Bus* bus) override; | 24 void Init(dbus::Bus* bus) override; |
| 23 | 25 |
| 24 // BluetoothMediaClient overrides. | 26 // BluetoothMediaClient overrides. |
| 25 void AddObserver(BluetoothMediaClient::Observer* observer) override; | 27 void AddObserver(BluetoothMediaClient::Observer* observer) override; |
| 26 void RemoveObserver(BluetoothMediaClient::Observer* observer) override; | 28 void RemoveObserver(BluetoothMediaClient::Observer* observer) override; |
| 27 void RegisterEndpoint(const dbus::ObjectPath& object_path, | 29 void RegisterEndpoint(const ObjectPath& object_path, |
| 28 const dbus::ObjectPath& endpoint_path, | 30 const ObjectPath& endpoint_path, |
| 29 const EndpointProperties& properties, | 31 const EndpointProperties& properties, |
| 30 const base::Closure& callback, | 32 const base::Closure& callback, |
| 31 const ErrorCallback& error_callback) override; | 33 const ErrorCallback& error_callback) override; |
| 32 void UnregisterEndpoint(const dbus::ObjectPath& object_path, | 34 void UnregisterEndpoint(const ObjectPath& object_path, |
| 33 const dbus::ObjectPath& endpoint_path, | 35 const ObjectPath& endpoint_path, |
| 34 const base::Closure& callback, | 36 const base::Closure& callback, |
| 35 const ErrorCallback& error_callback) override; | 37 const ErrorCallback& error_callback) override; |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 // List of observers interested in event notifications from us. | 40 // List of observers interested in event notifications from us. |
| 39 ObserverList<BluetoothMediaClient::Observer> observers_; | 41 ObserverList<BluetoothMediaClient::Observer> observers_; |
| 40 | 42 |
| 41 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); | 43 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 } // namespace chromeos | 46 } // namespace chromeos |
| 45 | 47 |
| 46 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 48 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
| OLD | NEW |