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

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc

Issue 2376873002: arc: bluetooth: Use uuid 128 bit for service uuid (Closed)
Patch Set: fix comment Created 4 years, 2 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 | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc b/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc
index 62f984996eadfb88a931bd74b978d8a4f2a6de92..9274e386378c46fa7bd9c7e280a06f7086e16a3c 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc
+++ b/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc
@@ -142,13 +142,10 @@ TEST_F(ArcBluetoothBridgeTest, LEDeviceFound) {
EXPECT_EQ(std::string(bluez::FakeBluetoothDeviceClient::kLowEnergyName),
adv_data[0]->get_local_name().To<std::string>());
- EXPECT_TRUE(adv_data[1]->is_service_uuids_16());
- EXPECT_EQ(1u, adv_data[1]->get_service_uuids_16().size());
-
- std::string uuid16_str =
- base::StringPrintf("%04x", adv_data[1]->get_service_uuids_16()[0]);
+ EXPECT_TRUE(adv_data[1]->is_service_uuids());
+ EXPECT_EQ(1u, adv_data[1]->get_service_uuids().size());
EXPECT_EQ(bluez::FakeBluetoothGattServiceClient::kHeartRateServiceUUID,
- device::BluetoothUUID(uuid16_str).canonical_value());
+ adv_data[1]->get_service_uuids()[0].canonical_value());
}
// Invoke GetGattDB and check correctness of the GattDB sent via arc bridge.
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698