| 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 8cde99f64fcf31e595034254fdc675585e70984a..bc6349999cdd4b10d00f45b75bccd7ecc50850cf 100644
|
| --- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
|
| +++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
|
| @@ -251,6 +251,8 @@ TEST_F(BluetoothAdapterMacTest, RemoveDiscoverySessionWithLowEnergyFilterFail) {
|
| }
|
|
|
| TEST_F(BluetoothAdapterMacTest, CheckGetPeripheralHashAddress) {
|
| + if (!SetMockCentralManager(CBCentralManagerStatePoweredOn))
|
| + return;
|
| base::scoped_nsobject<id> mock_peripheral(CreateMockPeripheral(kTestNSUUID));
|
| if (mock_peripheral.get() == nil)
|
| return;
|
| @@ -258,6 +260,8 @@ TEST_F(BluetoothAdapterMacTest, CheckGetPeripheralHashAddress) {
|
| }
|
|
|
| TEST_F(BluetoothAdapterMacTest, LowEnergyDeviceUpdatedNewDevice) {
|
| + if (!SetMockCentralManager(CBCentralManagerStatePoweredOn))
|
| + return;
|
| base::scoped_nsobject<id> mock_peripheral(CreateMockPeripheral(kTestNSUUID));
|
| if (mock_peripheral.get() == nil)
|
| return;
|
| @@ -272,6 +276,8 @@ TEST_F(BluetoothAdapterMacTest, LowEnergyDeviceUpdatedNewDevice) {
|
| }
|
|
|
| TEST_F(BluetoothAdapterMacTest, LowEnergyDeviceUpdatedOldDevice) {
|
| + if (!SetMockCentralManager(CBCentralManagerStatePoweredOn))
|
| + return;
|
| base::scoped_nsobject<id> mock_peripheral(CreateMockPeripheral(kTestNSUUID));
|
| if (mock_peripheral.get() == nil)
|
| return;
|
| @@ -302,6 +308,8 @@ TEST_F(BluetoothAdapterMacTest, LowEnergyDeviceUpdatedOldDevice) {
|
| }
|
|
|
| TEST_F(BluetoothAdapterMacTest, UpdateDevicesRemovesLowEnergyDevice) {
|
| + if (!SetMockCentralManager(CBCentralManagerStatePoweredOn))
|
| + return;
|
| base::scoped_nsobject<id> mock_peripheral(CreateMockPeripheral(kTestNSUUID));
|
| if (mock_peripheral.get() == nil)
|
| return;
|
|
|