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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h

Issue 1979633004: Invoke GattDiscoveryCompleteForService by observing ServicesResolved property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_attr
Patch Set: 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
Index: device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h b/device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h
index 41dbf7e86bd61bbf200aa05c9ec03c78270831ad..d56a35527f2a5a49d74ec3e1a68c33432d61ea9a 100644
--- a/device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h
@@ -55,6 +55,11 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattServiceClient
void ExposeHeartRateService(const dbus::ObjectPath& device_path);
void HideHeartRateService();
+ // Makes a service visible for device with object path |device_path| without
+ // delay. Note that only one instance of a specific service is simulated at a
+ // time, if the service is already visible.
+ void ExposeHeartRateServiceWithoutDelay(const dbus::ObjectPath& device_path);
+
// Returns whether or not the Heart Rate Service is visible.
bool IsHeartRateVisible() const;
@@ -85,6 +90,11 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattServiceClient
// time this method is called, then it does nothing.
void ExposeHeartRateCharacteristics();
+ // Toggles the ServicesResolved property for the device with |object_path|.
+ // This should be done after a service is fully discovered.
+ void ToggleServicesResolvedProperty(const dbus::ObjectPath& object_path,
+ bool resolved);
+
// Static properties we return. As long as a service is exposed, this will be
// non-null. Otherwise it will be null.
std::unique_ptr<Properties> heart_rate_service_properties_;
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/dbus/fake_bluetooth_gatt_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698