| 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_characteristic_client.h" | 5 #include "device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_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/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 13 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 14 #include "device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.h" | 14 #include "device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_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 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const int kStartNotifyResponseIntervalMs = 200; | 21 const int kStartNotifyResponseIntervalMs = 200; |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 DCHECK(heart_rate_visible_ != heart_rate_measurement_path_.empty()); | 556 DCHECK(heart_rate_visible_ != heart_rate_measurement_path_.empty()); |
| 557 DCHECK(heart_rate_visible_ != body_sensor_location_path_.empty()); | 557 DCHECK(heart_rate_visible_ != body_sensor_location_path_.empty()); |
| 558 DCHECK(heart_rate_visible_ != heart_rate_control_point_path_.empty()); | 558 DCHECK(heart_rate_visible_ != heart_rate_control_point_path_.empty()); |
| 559 DCHECK(heart_rate_visible_ == !!heart_rate_measurement_properties_.get()); | 559 DCHECK(heart_rate_visible_ == !!heart_rate_measurement_properties_.get()); |
| 560 DCHECK(heart_rate_visible_ == !!body_sensor_location_properties_.get()); | 560 DCHECK(heart_rate_visible_ == !!body_sensor_location_properties_.get()); |
| 561 DCHECK(heart_rate_visible_ == !!heart_rate_control_point_properties_.get()); | 561 DCHECK(heart_rate_visible_ == !!heart_rate_control_point_properties_.get()); |
| 562 return heart_rate_visible_; | 562 return heart_rate_visible_; |
| 563 } | 563 } |
| 564 | 564 |
| 565 } // namespace bluez | 565 } // namespace bluez |
| OLD | NEW |