Chromium Code Reviews| Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
| diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
| index f8d4d8c0e7cb45838448359ee0ca06658254a004..0e758945e7688e0d83d3e9ff0f622b44cf71f3ef 100644 |
| --- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
| +++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
| @@ -1148,7 +1148,7 @@ IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTest, GattConnection) { |
| EXPECT_CALL(*mock_adapter_, GetDevice(kTestLeDeviceAddress1)) |
| .WillRepeatedly(Return(device1_.get())); |
| EXPECT_CALL(*device0_, CreateGattConnection(_, _)) |
|
scheib
2016/01/09 23:27:13
If the number of enums changes we need to update t
Kai Jiang
2016/01/10 08:47:16
Make sense. Addressed comment.
|
| - .Times(9) |
| + .Times(16) |
| .WillOnce(InvokeCallbackArgument<1>(BluetoothDevice::ERROR_FAILED)) |
| .WillOnce(InvokeCallbackArgument<1>(BluetoothDevice::ERROR_INPROGRESS)) |
| .WillOnce(InvokeCallbackArgument<1>(BluetoothDevice::ERROR_AUTH_FAILED)) |
| @@ -1157,6 +1157,20 @@ IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTest, GattConnection) { |
| .WillOnce(InvokeCallbackArgument<1>(BluetoothDevice::ERROR_AUTH_TIMEOUT)) |
| .WillOnce( |
| InvokeCallbackArgument<1>(BluetoothDevice::ERROR_UNSUPPORTED_DEVICE)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_ATTRIBUTE_LENGTH_INVALID)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_CONNECTION_CONGESTED)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_INSUFFICIENT_ENCRYPTION)) |
| + .WillOnce( |
| + InvokeCallbackArgument<1>(BluetoothDevice::ERROR_OFFSET_INVALID)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_READ_NOT_PERMITTED)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_REQUEST_NOT_SUPPORTED)) |
| + .WillOnce(InvokeCallbackArgument<1>( |
| + BluetoothDevice::ERROR_WRITE_NOT_PERMITTED)) |
| .WillOnce(InvokeCallbackWithScopedPtrArg<0, BluetoothGattConnection>( |
| CreateGattConnection(mock_adapter_, kTestLeDeviceAddress0, |
| true /* expect_disconnect */))) |