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

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

Issue 2483783005: bluetooth: bluez: Implement RetrieveGattConnectedDevicesWithDiscoveryFilter (Closed)
Patch Set: Clean up Created 4 years, 1 month 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
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_client.h" 5 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 12 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
13 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h" 13 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h"
14 #include "device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.h" 14 #include "device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.h"
15 #include "third_party/cros_system_api/dbus/service_constants.h" 15 #include "third_party/cros_system_api/dbus/service_constants.h"
16 16
17 namespace bluez { 17 namespace bluez {
18 18
19 // static 19 // static
20 const char FakeBluetoothGattServiceClient::kHeartRateServicePathComponent[] = 20 const char FakeBluetoothGattServiceClient::kHeartRateServicePathComponent[] =
21 "service0000"; 21 "service0000";
22 const char FakeBluetoothGattServiceClient::kBatteryServicePathComponent[] = 22 const char FakeBluetoothGattServiceClient::kBatteryServicePathComponent[] =
23 "service0001"; 23 "service0001";
24 const char FakeBluetoothGattServiceClient::kGenericAccessServiceUUID[] =
25 "00001800-0000-1000-8000-00805f9b34fb";
24 const char FakeBluetoothGattServiceClient::kHeartRateServiceUUID[] = 26 const char FakeBluetoothGattServiceClient::kHeartRateServiceUUID[] =
25 "0000180d-0000-1000-8000-00805f9b34fb"; 27 "0000180d-0000-1000-8000-00805f9b34fb";
26 const char FakeBluetoothGattServiceClient::kBatteryServiceUUID[] = 28 const char FakeBluetoothGattServiceClient::kBatteryServiceUUID[] =
27 "0000180f-0000-1000-8000-00805f9b34fb"; 29 "0000180f-0000-1000-8000-00805f9b34fb";
28 30
29 FakeBluetoothGattServiceClient::Properties::Properties( 31 FakeBluetoothGattServiceClient::Properties::Properties(
30 const PropertyChangedCallback& callback) 32 const PropertyChangedCallback& callback)
31 : BluetoothGattServiceClient::Properties( 33 : BluetoothGattServiceClient::Properties(
32 NULL, 34 NULL,
33 bluetooth_gatt_service::kBluetoothGattServiceInterface, 35 bluetooth_gatt_service::kBluetoothGattServiceInterface,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 208 }
207 FakeBluetoothGattCharacteristicClient* char_client = 209 FakeBluetoothGattCharacteristicClient* char_client =
208 static_cast<FakeBluetoothGattCharacteristicClient*>( 210 static_cast<FakeBluetoothGattCharacteristicClient*>(
209 bluez::BluezDBusManager::Get() 211 bluez::BluezDBusManager::Get()
210 ->GetBluetoothGattCharacteristicClient()); 212 ->GetBluetoothGattCharacteristicClient());
211 char_client->ExposeHeartRateCharacteristics( 213 char_client->ExposeHeartRateCharacteristics(
212 dbus::ObjectPath(heart_rate_service_path_)); 214 dbus::ObjectPath(heart_rate_service_path_));
213 } 215 }
214 216
215 } // namespace bluez 217 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698