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

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

Issue 2798193002: Use test UUIDs for device bluetooth unit tests (Closed)
Patch Set: address comments Created 3 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 | « device/bluetooth/test/bluetooth_test.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/bluetooth_test.cc
diff --git a/device/bluetooth/test/bluetooth_test.cc b/device/bluetooth/test/bluetooth_test.cc
index 234b0486400cd33bf8780d08ed3931b86987a2d5..82d21462a8cbb02560719e38e47e5e0824464130 100644
--- a/device/bluetooth/test/bluetooth_test.cc
+++ b/device/bluetooth/test/bluetooth_test.cc
@@ -25,6 +25,7 @@ const std::string BluetoothTestBase::kTestDeviceAddress1 = "01:00:00:90:1E:BE";
const std::string BluetoothTestBase::kTestDeviceAddress2 = "02:00:00:8B:74:63";
const std::string BluetoothTestBase::kTestDeviceAddress3 = "03:00:00:17:C0:57";
+// Service UUIDs
const std::string BluetoothTestBase::kTestUUIDGenericAccess =
"00001800-0000-1000-8000-00805f9b34fb";
const std::string BluetoothTestBase::kTestUUIDGenericAttribute =
@@ -35,6 +36,26 @@ const std::string BluetoothTestBase::kTestUUIDLinkLoss =
"00001803-0000-1000-8000-00805f9b34fb";
const std::string BluetoothTestBase::kTestUUIDHeartRate =
"0000180d-0000-1000-8000-00805f9b34fb";
+// Characteristic UUIDs
+const std::string BluetoothTestBase::kTestUUIDDeviceName =
+ "00002a00-0000-1000-8000-00805f9b34fb";
+const std::string BluetoothTestBase::kTestUUIDAppearance =
+ "00002a01-0000-1000-8000-00805f9b34fb";
+const std::string BluetoothTestBase::kTestUUIDReconnectionAddress =
+ "00002a03-0000-1000-8000-00805f9b34fb";
+const std::string BluetoothTestBase::kTestUUIDHeartRateMeasurement =
+ "00002a37-0000-1000-8000-00805f9b34fb";
+// Descriptor UUIDs
+const std::string BluetoothTestBase::kTestUUIDCharacteristicUserDescription =
+ "00002901-0000-1000-8000-00805f9b34fb";
+const std::string
+ BluetoothTestBase::kTestUUIDClientCharacteristicConfiguration =
+ "00002902-0000-1000-8000-00805f9b34fb";
+const std::string
+ BluetoothTestBase::kTestUUIDServerCharacteristicConfiguration =
+ "00002903-0000-1000-8000-00805f9b34fb";
+const std::string BluetoothTestBase::kTestUUIDCharacteristicPresentationFormat =
+ "00002904-0000-1000-8000-00805f9b34fb";
BluetoothTestBase::BluetoothTestBase() : weak_factory_(this) {}
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698