| 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_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/bluetooth_profile_service_provider.h" | |
| 13 #include "dbus/file_descriptor.h" | 12 #include "dbus/file_descriptor.h" |
| 14 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
| 14 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace bluez { |
| 17 | 17 |
| 18 // FakeBluetoothProfileServiceProvider simulates the behavior of a local | 18 // FakeBluetoothProfileServiceProvider simulates the behavior of a local |
| 19 // Bluetooth agent object and is used both in test cases in place of a | 19 // Bluetooth agent object and is used both in test cases in place of a |
| 20 // mock and on the Linux desktop. | 20 // mock and on the Linux desktop. |
| 21 // | 21 // |
| 22 // This class is only called from the dbus origin thread and is not thread-safe. | 22 // This class is only called from the dbus origin thread and is not thread-safe. |
| 23 class CHROMEOS_EXPORT FakeBluetoothProfileServiceProvider | 23 class CHROMEOS_EXPORT FakeBluetoothProfileServiceProvider |
| 24 : public BluetoothProfileServiceProvider { | 24 : public BluetoothProfileServiceProvider { |
| 25 public: | 25 public: |
| 26 FakeBluetoothProfileServiceProvider(const dbus::ObjectPath& object_path, | 26 FakeBluetoothProfileServiceProvider(const dbus::ObjectPath& object_path, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 48 dbus::ObjectPath object_path_; | 48 dbus::ObjectPath object_path_; |
| 49 | 49 |
| 50 // All incoming method calls are passed on to the Delegate and a callback | 50 // All incoming method calls are passed on to the Delegate and a callback |
| 51 // passed to generate the reply. |delegate_| is generally the object that | 51 // passed to generate the reply. |delegate_| is generally the object that |
| 52 // owns this one, and must outlive it. | 52 // owns this one, and must outlive it. |
| 53 Delegate* delegate_; | 53 Delegate* delegate_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothProfileServiceProvider); | 55 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothProfileServiceProvider); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace chromeos | 58 } // namespace bluez |
| 59 | 59 |
| 60 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ | 60 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ |
| OLD | NEW |