Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.cc

Issue 1920693002: Complete //device/bt implementation for hosting local GATT attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698