Index: chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc |
diff --git a/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc b/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc |
index c25e71c6b84449dfa50d4e533a874ddbf39a5e0c..55784a974830b6b001b09b53d1f829adabf04774 100644 |
--- a/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc |
+++ b/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc |
@@ -49,7 +49,10 @@ void FakeBluetoothGattCharacteristicClient::Properties::Get( |
dbus::PropertyBase* property, |
dbus::PropertySet::GetCallback callback) { |
VLOG(1) << "Get " << property->name(); |
- callback.Run(false); |
+ |
+ // TODO(armansito): Return success or failure here based on characteristic |
+ // read permission. |
+ callback.Run(true); |
} |
void FakeBluetoothGattCharacteristicClient::Properties::GetAll() { |
@@ -116,8 +119,8 @@ FakeBluetoothGattCharacteristicClient::GetProperties( |
return heart_rate_measurement_properties_.get(); |
} |
if (object_path.value() == body_sensor_location_path_) { |
- DCHECK(heart_rate_measurement_properties_.get()); |
- return heart_rate_measurement_properties_.get(); |
+ DCHECK(body_sensor_location_properties_.get()); |
+ return body_sensor_location_properties_.get(); |
} |
if (object_path.value() == heart_rate_control_point_path_) { |
DCHECK(heart_rate_control_point_properties_.get()); |
@@ -226,6 +229,21 @@ void FakeBluetoothGattCharacteristicClient::HideHeartRateCharacteristics() { |
heart_rate_visible_ = false; |
} |
+dbus::ObjectPath |
+FakeBluetoothGattCharacteristicClient::GetHeartRateMeasurementPath() const { |
+ return dbus::ObjectPath(heart_rate_measurement_path_); |
+} |
+ |
+dbus::ObjectPath |
+FakeBluetoothGattCharacteristicClient::GetBodySensorLocationPath() const { |
+ return dbus::ObjectPath(body_sensor_location_path_); |
+} |
+ |
+dbus::ObjectPath |
+FakeBluetoothGattCharacteristicClient::GetHeartRateControlPointPath() const { |
+ return dbus::ObjectPath(heart_rate_control_point_path_); |
+} |
+ |
void FakeBluetoothGattCharacteristicClient::OnPropertyChanged( |
const dbus::ObjectPath& object_path, |
const std::string& property_name) { |