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

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..de772843180db56ac8b838b2fb85130796e1435e 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,14 @@ 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;
+ last_device_path_ = device_path;
+ last_value_ = value;
+ last_indicate_flag_ = indicate;
}
void FakeBluetoothGattCharacteristicServiceProvider::GetValue(
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.h ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698