| 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_ENDPOINT_SERVICE_PROVIDER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/bluetooth_media_endpoint_service_provider.h" | |
| 13 #include "dbus/object_path.h" | 12 #include "dbus/object_path.h" |
| 13 #include "device/bluetooth/dbus/bluetooth_media_endpoint_service_provider.h" |
| 14 #include "testing/gtest/include/gtest/gtest_prod.h" | 14 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace bluez { |
| 17 | 17 |
| 18 // FakeBluetoothMediaEndpointServiceProvider simulates the behavior of a local | 18 // FakeBluetoothMediaEndpointServiceProvider simulates the behavior of a local |
| 19 // Bluetooth Media Endpoint object. | 19 // Bluetooth Media Endpoint object. |
| 20 class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider | 20 class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider |
| 21 : public BluetoothMediaEndpointServiceProvider { | 21 : public BluetoothMediaEndpointServiceProvider { |
| 22 public: | 22 public: |
| 23 FakeBluetoothMediaEndpointServiceProvider(const dbus::ObjectPath& object_path, | 23 FakeBluetoothMediaEndpointServiceProvider(const dbus::ObjectPath& object_path, |
| 24 Delegate* delegate); | 24 Delegate* delegate); |
| 25 ~FakeBluetoothMediaEndpointServiceProvider() override; | 25 ~FakeBluetoothMediaEndpointServiceProvider() override; |
| 26 | 26 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 45 dbus::ObjectPath object_path_; | 45 dbus::ObjectPath object_path_; |
| 46 | 46 |
| 47 // All incoming method calls are passed to |delegate_|. |callback| passed to | 47 // All incoming method calls are passed to |delegate_|. |callback| passed to |
| 48 // |delegate_| will generate the response for those methods which have | 48 // |delegate_| will generate the response for those methods which have |
| 49 // non-void return. | 49 // non-void return. |
| 50 Delegate* delegate_; | 50 Delegate* delegate_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider); | 52 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace chromeos | 55 } // namespace bluez |
| 56 | 56 |
| 57 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 57 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| OLD | NEW |