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

Unified Diff: device/bluetooth/test/bluetooth_test_mac.mm

Issue 1685963003: Adding the last test related with connect/disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connectdisconnect
Patch Set: Issue to convert no NSError to ConnectErrorCode Created 4 years, 10 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
Index: device/bluetooth/test/bluetooth_test_mac.mm
diff --git a/device/bluetooth/test/bluetooth_test_mac.mm b/device/bluetooth/test/bluetooth_test_mac.mm
index 230a48f3bd09efffd12d0786e5066a3678194f31..24dbe1c62304f1d37878bd8f4a7135910ead93cc 100644
--- a/device/bluetooth/test/bluetooth_test_mac.mm
+++ b/device/bluetooth/test/bluetooth_test_mac.mm
@@ -225,11 +225,8 @@ void BluetoothTestMac::SimulateGattConnectionError(
[mockPeripheral setStateForTesting:CBPeripheralStateDisconnected];
CBCentralManager* centralManager =
static_cast<CBCentralManager*>(mock_central_manager_);
- // TODO(http://crbug.com/585894): Need to convert the connect error code into
- // NSError
- NSError* error = [NSError errorWithDomain:@"BluetoothDevice::ConnectErrorCode"
- code:-1
- userInfo:nil];
+ NSError* error =
+ BluetoothAdapterMac::GetNSErrorFromConnectErrorCode(errorCode);
[centralManager.delegate centralManager:centralManager
didFailToConnectPeripheral:peripheral
error:error];

Powered by Google App Engine
This is Rietveld 408576698