| 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 DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattManagerClient | 33 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattManagerClient |
| 34 : public BluetoothGattManagerClient { | 34 : public BluetoothGattManagerClient { |
| 35 public: | 35 public: |
| 36 FakeBluetoothGattManagerClient(); | 36 FakeBluetoothGattManagerClient(); |
| 37 ~FakeBluetoothGattManagerClient() override; | 37 ~FakeBluetoothGattManagerClient() override; |
| 38 | 38 |
| 39 // DBusClient override. | 39 // DBusClient override. |
| 40 void Init(dbus::Bus* bus) override; | 40 void Init(dbus::Bus* bus) override; |
| 41 | 41 |
| 42 // BluetoothGattManagerClient overrides. | 42 // BluetoothGattManagerClient overrides. |
| 43 void RegisterApplication(const dbus::ObjectPath& application_path, | 43 void RegisterApplication(const dbus::ObjectPath& adapter_object_path, |
| 44 const dbus::ObjectPath& application_path, |
| 44 const Options& options, | 45 const Options& options, |
| 45 const base::Closure& callback, | 46 const base::Closure& callback, |
| 46 const ErrorCallback& error_callback) override; | 47 const ErrorCallback& error_callback) override; |
| 47 void UnregisterApplication(const dbus::ObjectPath& application_path, | 48 void UnregisterApplication(const dbus::ObjectPath& adapter_object_path, |
| 49 const dbus::ObjectPath& application_path, |
| 48 const base::Closure& callback, | 50 const base::Closure& callback, |
| 49 const ErrorCallback& error_callback) override; | 51 const ErrorCallback& error_callback) override; |
| 50 | 52 |
| 51 // Register, unregister, and retrieve pointers to application service | 53 // Register, unregister, and retrieve pointers to application service |
| 52 // providers. Automatically called from the application provider constructor | 54 // providers. Automatically called from the application provider constructor |
| 53 // and destructors. | 55 // and destructors. |
| 54 void RegisterApplicationServiceProvider( | 56 void RegisterApplicationServiceProvider( |
| 55 FakeBluetoothGattApplicationServiceProvider* provider); | 57 FakeBluetoothGattApplicationServiceProvider* provider); |
| 56 void RegisterServiceServiceProvider( | 58 void RegisterServiceServiceProvider( |
| 57 FakeBluetoothGattServiceServiceProvider* provider); | 59 FakeBluetoothGattServiceServiceProvider* provider); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ServiceMap service_map_; | 123 ServiceMap service_map_; |
| 122 CharacteristicMap characteristic_map_; | 124 CharacteristicMap characteristic_map_; |
| 123 DescriptorMap descriptor_map_; | 125 DescriptorMap descriptor_map_; |
| 124 | 126 |
| 125 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattManagerClient); | 127 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattManagerClient); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace bluez | 130 } // namespace bluez |
| 129 | 131 |
| 130 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ | 132 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| OLD | NEW |