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 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h" | 5 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 8 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
9 #include "device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.h" | 9 #include "device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 FakeBluetoothGattServiceServiceProvider:: | 27 FakeBluetoothGattServiceServiceProvider:: |
28 ~FakeBluetoothGattServiceServiceProvider() { | 28 ~FakeBluetoothGattServiceServiceProvider() { |
29 VLOG(1) << "Cleaning up Bluetooth GATT service: " << object_path_.value(); | 29 VLOG(1) << "Cleaning up Bluetooth GATT service: " << object_path_.value(); |
30 | 30 |
31 FakeBluetoothGattManagerClient* fake_bluetooth_gatt_manager_client = | 31 FakeBluetoothGattManagerClient* fake_bluetooth_gatt_manager_client = |
32 static_cast<FakeBluetoothGattManagerClient*>( | 32 static_cast<FakeBluetoothGattManagerClient*>( |
33 bluez::BluezDBusManager::Get()->GetBluetoothGattManagerClient()); | 33 bluez::BluezDBusManager::Get()->GetBluetoothGattManagerClient()); |
34 fake_bluetooth_gatt_manager_client->UnregisterServiceServiceProvider(this); | 34 fake_bluetooth_gatt_manager_client->UnregisterServiceServiceProvider(this); |
35 } | 35 } |
36 | 36 |
| 37 const dbus::ObjectPath& FakeBluetoothGattServiceServiceProvider::object_path() |
| 38 const { |
| 39 return object_path_; |
| 40 } |
| 41 |
37 } // namespace bluez | 42 } // namespace bluez |
OLD | NEW |