Chromium Code Reviews| Index: device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.cc b/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| index cc4eaefd168133e2254bf8b58a50028a5a22380d..4f0243de137cf02b6c0f0cf409886aea2197b029 100644 |
| --- a/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| +++ b/device/bluetooth/dbus/fake_bluetooth_device_client.cc |
| @@ -601,8 +601,9 @@ void FakeBluetoothDeviceClient::SetLEConnectionParameters( |
| const base::Closure& callback, |
| const ErrorCallback& error_callback) { |
| Properties* properties = GetProperties(object_path); |
| - if (!properties->connected.value()) { |
| - error_callback.Run(bluetooth_device::kErrorNotConnected, "Not Connected"); |
| + if (!properties->type.is_valid() || properties->type.value() == kTypeBredr) { |
|
ortuno
2017/06/01 22:59:35
nit: Add test for invalid type
Tim Song
2017/06/01 23:45:31
Done.
|
| + error_callback.Run(bluetooth_device::kErrorFailed, |
| + "BR/EDR devices not supported"); |
| return; |
| } |