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

Unified Diff: device/bluetooth/test/bluetooth_test.h

Issue 2244693002: bluetooth: Refactor how we update based on Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/test/bluetooth_test.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index db27ef4d75cde4bad28f0ebb73909b6b78d2349f..90f7c7ca81f9e13897fa31888bf4f1b2dc5080ef 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -55,6 +55,7 @@ class BluetoothTestBase : public testing::Test {
static const std::string kTestUUIDGenericAttribute;
static const std::string kTestUUIDImmediateAlert;
static const std::string kTestUUIDLinkLoss;
+ static const std::string kTestUUIDHeartRate;
BluetoothTestBase();
~BluetoothTestBase() override;
@@ -95,9 +96,11 @@ class BluetoothTestBase : public testing::Test {
// Create a fake Low Energy device and discover it.
// |device_ordinal| selects between multiple fake device data sets to produce:
// 1: kTestDeviceName with advertised UUIDs kTestUUIDGenericAccess,
- // kTestUUIDGenericAttribute and address kTestDeviceAddress1.
+ // kTestUUIDGenericAttribute, address kTestDeviceAddress1 and service
+ // data of {kTestUUIDHeartRate: [1]}.
// 2: kTestDeviceName with advertised UUIDs kTestUUIDImmediateAlert,
- // kTestUUIDLinkLoss and address kTestDeviceAddress1.
+ // kTestUUIDLinkLoss, address kTestDeviceAddress1 and service data of
+ // {kTestUUIDHeartRate: [2], kTestUUIDImmediateAlert: [0]}.
// 3: kTestDeviceNameEmpty with no advertised UUIDs and address
// kTestDeviceAddress1.
// 4: kTestDeviceNameEmpty with no advertised UUIDs and address

Powered by Google App Engine
This is Rietveld 408576698