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_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/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_gatt_characteristic_client.h" | 13 #include "device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.h" |
14 #include "third_party/cros_system_api/dbus/service_constants.h" | 14 #include "third_party/cros_system_api/dbus/service_constants.h" |
15 | 15 |
16 namespace bluez { | 16 namespace bluez { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const int kExposeCharacteristicsDelayIntervalMs = 100; | 20 const int kExposeCharacteristicsDelayIntervalMs = 100; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 std::vector<dbus::ObjectPath> char_paths; | 181 std::vector<dbus::ObjectPath> char_paths; |
182 char_paths.push_back(char_client->GetHeartRateMeasurementPath()); | 182 char_paths.push_back(char_client->GetHeartRateMeasurementPath()); |
183 char_paths.push_back(char_client->GetBodySensorLocationPath()); | 183 char_paths.push_back(char_client->GetBodySensorLocationPath()); |
184 char_paths.push_back(char_client->GetHeartRateControlPointPath()); | 184 char_paths.push_back(char_client->GetHeartRateControlPointPath()); |
185 | 185 |
186 heart_rate_service_properties_->characteristics.ReplaceValue(char_paths); | 186 heart_rate_service_properties_->characteristics.ReplaceValue(char_paths); |
187 } | 187 } |
188 | 188 |
189 } // namespace bluez | 189 } // namespace bluez |
OLD | NEW |