Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
index 4c0635a49a7148ea35fae36a3b613ececd4434bb..aad6fe5f25b66b485fecd18dd64f7a7537ff2367 100644 |
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
@@ -272,6 +272,10 @@ LayoutTestBluetoothAdapterProvider::GetEmptyDevice( |
ON_CALL(*device_name_characteristic, ReadRemoteCharacteristic(_, _)) |
.WillByDefault(RunCallback<0>(device_name_value)); |
+ ON_CALL(*device_name_characteristic, WriteRemoteCharacteristic(_, _, _)) |
+ .WillByDefault(RunCallback<2 /* error callback */>( |
+ BluetoothGattService::GATT_ERROR_NOT_PERMITTED)); |
+ |
generic_access->AddMockCharacteristic(device_name_characteristic.Pass()); |
scoped_ptr<NiceMock<MockBluetoothGattCharacteristic>> reconnection_address( |
@@ -282,6 +286,9 @@ LayoutTestBluetoothAdapterProvider::GetEmptyDevice( |
.WillByDefault( |
RunCallback<1>(BluetoothGattService::GATT_ERROR_NOT_PERMITTED)); |
+ ON_CALL(*reconnection_address, WriteRemoteCharacteristic(_, _, _)) |
+ .WillByDefault(RunCallback<1 /* success callback */>()); |
+ |
generic_access->AddMockCharacteristic(reconnection_address.Pass()); |
empty_device->AddMockService(generic_access.Pass()); |