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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc

Issue 2039773005: Add support in Chrome to send notifications to a specific device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc
diff --git a/device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc
index cbc240dc5aa0517c8548fdb05e59508fa46530d3..69dbe051bcb08c2545b8969697b33b247791e429 100644
--- a/device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc
@@ -106,10 +106,12 @@ FakeBluetoothGattCharacteristicServiceProvider::
}
void FakeBluetoothGattCharacteristicServiceProvider::SendValueChanged(
- const std::vector<uint8_t>& value) {
+ const dbus::ObjectPath& device_path,
+ const std::vector<uint8_t>& value,
+ bool indicate) {
VLOG(1) << "Sent characteristic value changed: " << object_path_.value()
<< " UUID: " << uuid_;
- sent_value_ = value;
+ sent_value_ = std::make_tuple(device_path.value(), value, indicate);
}
void FakeBluetoothGattCharacteristicServiceProvider::GetValue(

Powered by Google App Engine
This is Rietveld 408576698