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

Unified Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 2906883004: bluetooth: macOS: Removing useless |.get()| (Closed)
Patch Set: Merge from top of tree Created 3 years, 7 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/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac_unittest.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac_unittest.mm b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
index b330b3faf95e64f7aad86cc42dac1feeefd3f4f2..13ba56d3dd182b99044a418130bbe7d640291326 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -69,7 +69,7 @@ class BluetoothAdapterMacTest : public testing::Test {
}
base::scoped_nsobject<MockCBPeripheral> mock_peripheral(
[[MockCBPeripheral alloc] initWithUTF8StringIdentifier:identifier]);
- return [mock_peripheral.get().peripheral retain];
+ return [[mock_peripheral peripheral] retain];
}
NSDictionary* AdvertisementData() {
@@ -234,7 +234,7 @@ TEST_F(BluetoothAdapterMacTest, CheckGetPeripheralHashAddress) {
return;
base::scoped_nsobject<CBPeripheral> mock_peripheral(
CreateMockPeripheral(kTestNSUUID));
- if (mock_peripheral.get() == nil)
+ if (!mock_peripheral)
return;
EXPECT_EQ(kTestHashAddress, GetHashAddress(mock_peripheral));
}
@@ -244,7 +244,7 @@ TEST_F(BluetoothAdapterMacTest, LowEnergyDeviceUpdatedNewDevice) {
return;
base::scoped_nsobject<CBPeripheral> mock_peripheral(
CreateMockPeripheral(kTestNSUUID));
- if (mock_peripheral.get() == nil)
+ if (!mock_peripheral)
return;
base::scoped_nsobject<NSDictionary> advertisement_data(AdvertisementData());
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698