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

Unified Diff: device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc

Issue 1979163002: Add DBus plumbing and tests for sending devices with ATT read/writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devices
Patch Set: gyp fix Created 4 years, 7 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
« no previous file with comments | « device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc
diff --git a/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc b/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc
index b1970646fe1087c2391672f556d95680c5e6d6e5..aa306ca34bb86eacfafe664fe69eb584b0030895 100644
--- a/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc
+++ b/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc
@@ -31,6 +31,7 @@ void TestBluetoothLocalGattServiceDelegate::OnCharacteristicReadRequest(
error_callback.Run();
return;
}
+ last_seen_device_ = device->GetIdentifier();
callback.Run(BluetoothGattServerTest::GetValue(value_to_write_));
}
@@ -47,6 +48,7 @@ void TestBluetoothLocalGattServiceDelegate::OnCharacteristicWriteRequest(
error_callback.Run();
return;
}
+ last_seen_device_ = device->GetIdentifier();
last_written_value_ = BluetoothGattServerTest::GetInteger(value);
callback.Run();
}
@@ -62,6 +64,7 @@ void TestBluetoothLocalGattServiceDelegate::OnDescriptorReadRequest(
error_callback.Run();
return;
}
+ last_seen_device_ = device->GetIdentifier();
callback.Run(BluetoothGattServerTest::GetValue(value_to_write_));
}
@@ -77,6 +80,7 @@ void TestBluetoothLocalGattServiceDelegate::OnDescriptorWriteRequest(
error_callback.Run();
return;
}
+ last_seen_device_ = device->GetIdentifier();
last_written_value_ = BluetoothGattServerTest::GetInteger(value);
callback.Run();
}
« no previous file with comments | « device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698