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

Unified Diff: device/bluetooth/bluetooth_device_unittest.cc

Issue 2440043002: bluetooth: bluez: GetName uses 'name' instead of 'alias'. (Closed)
Patch Set: Created 4 years, 1 month 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/bluetooth_device_unittest.cc
diff --git a/device/bluetooth/bluetooth_device_unittest.cc b/device/bluetooth/bluetooth_device_unittest.cc
index 22ba74840241dddff0e52b7ab8baa57a9cd2d03b..02018d0ffe2243eff91db12e8452442f843b96e0 100644
--- a/device/bluetooth/bluetooth_device_unittest.cc
+++ b/device/bluetooth/bluetooth_device_unittest.cc
@@ -673,7 +673,7 @@ TEST_F(BluetoothTest, AdvertisementData_ConnectionDuringDiscovery) {
}
#endif // defined(OS_ANDROID) || defined(OS_MACOSX)
-#if defined(OS_ANDROID) || defined(OS_MACOSX)
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_MACOSX)
// GetName for Device with no name.
TEST_F(BluetoothTest, GetName_NullName) {
if (!PlatformSupportsLowEnergy()) {
@@ -681,11 +681,10 @@ TEST_F(BluetoothTest, GetName_NullName) {
return;
}
InitWithFakeAdapter();
- StartLowEnergyDiscoverySession();
scheib 2016/11/03 23:48:14 StartLowEnergyDiscoverySession() is not needed for
BluetoothDevice* device = SimulateLowEnergyDevice(5);
EXPECT_FALSE(device->GetName());
}
-#endif // defined(OS_ANDROID) || defined(OS_MACOSX)
+#endif // defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_MACOSX)
// TODO(506415): Test GetNameForDisplay with a device with no name.
// BluetoothDevice::GetAddressWithLocalizedDeviceTypeName() will run, which

Powered by Google App Engine
This is Rietveld 408576698