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

Unified Diff: device/bluetooth/bluez/bluetooth_bluez_unittest.cc

Issue 2167013002: bluetooth: Clean up bluez fake device name/alias code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-GetName-
Patch Set: fix patch dep 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/bluez/bluetooth_bluez_unittest.cc
diff --git a/device/bluetooth/bluez/bluetooth_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
index c78e7cd7c21527bd4d6a6f271ddc62badd9db2e3..c26a5d5c5796a94395e3c574ee252bc336c86491 100644
--- a/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
+++ b/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
@@ -2152,7 +2152,7 @@ TEST_F(BluetoothBlueZTest, DeviceProperties) {
// Verify the other device properties.
EXPECT_EQ(
- base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceName),
+ base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceAlias),
devices[idx]->GetNameForDisplay());
EXPECT_EQ(BluetoothDevice::DEVICE_COMPUTER, devices[idx]->GetDeviceType());
EXPECT_TRUE(devices[idx]->IsPaired());
@@ -2327,7 +2327,7 @@ TEST_F(BluetoothBlueZTest, DeviceNameChanged) {
ASSERT_EQ(bluez::FakeBluetoothDeviceClient::kPairedDeviceAddress,
devices[idx]->GetAddress());
ASSERT_EQ(
- base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceName),
+ base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceAlias),
devices[idx]->GetNameForDisplay());
// Install an observer; expect the DeviceChanged method to be called when
@@ -2360,7 +2360,7 @@ TEST_F(BluetoothBlueZTest, DeviceAddressChanged) {
ASSERT_EQ(bluez::FakeBluetoothDeviceClient::kPairedDeviceAddress,
devices[idx]->GetAddress());
ASSERT_EQ(
- base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceName),
+ base::UTF8ToUTF16(bluez::FakeBluetoothDeviceClient::kPairedDeviceAlias),
devices[idx]->GetNameForDisplay());
// Install an observer; expect the DeviceAddressChanged method to be called

Powered by Google App Engine
This is Rietveld 408576698