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

Unified Diff: chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h

Issue 228643004: device/bluetooth: Add chromeos::BluetoothRemoteGattCharacteristicChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed potentially flaky expectation from unit test. Created 6 years, 8 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 | « no previous file | chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h
diff --git a/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h b/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h
index 69eb23de950607bf02fb6b3c11e2ace7cf9cad45..bd3d126b8c2a3b93f1e31b8c4d4125a297925e14 100644
--- a/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h
+++ b/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h
@@ -56,6 +56,16 @@ class CHROMEOS_EXPORT FakeBluetoothGattCharacteristicClient
void ExposeHeartRateCharacteristics(const dbus::ObjectPath& service_path);
void HideHeartRateCharacteristics();
+ // Returns whether or not the heart rate characteristics are visible and
+ // performs the appropriate assertions.
+ bool IsHeartRateVisible() const;
+
+ // Returns the current object paths of exposed characteristics. If the
+ // characteristic is not visible, returns an invalid empty path.
+ dbus::ObjectPath GetHeartRateMeasurementPath() const;
+ dbus::ObjectPath GetBodySensorLocationPath() const;
+ dbus::ObjectPath GetHeartRateControlPointPath() const;
+
// Object path components and UUIDs of GATT characteristics.
// Heart Rate Service:
static const char kHeartRateMeasurementPathComponent[];
@@ -83,10 +93,6 @@ class CHROMEOS_EXPORT FakeBluetoothGattCharacteristicClient
// is a random value within a reasonable range.
std::vector<uint8> GetHeartRateMeasurementValue();
- // Returns whether or not the heart rate characteristics are visible and
- // performs the appropriate assertions.
- bool IsHeartRateVisible() const;
-
// If true, characteristics of the Heart Rate Service are visible. Use
// IsHeartRateVisible() to check the value.
bool heart_rate_visible_;
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698