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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: III Created 5 years, 1 month 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: 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 407922a5e68a7e2e758b218590e9177f6d25e712..05a0c1e3cc6923d97cc63db92bb164a0a14b52e8 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
@@ -1153,6 +1153,18 @@ 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_FAILED))
+ .WillOnce(InvokeCallbackArgument<1>(
+ BluetoothDevice::ERROR_REQUEST_NOT_SUPPORTED))
+ .WillOnce(InvokeCallbackArgument<1>(BluetoothDevice::ERROR_WRITE_FAILED))
.WillOnce(InvokeCallbackWithScopedPtrArg<0, BluetoothGattConnection>(
CreateGattConnection(mock_adapter_, kTestLeDeviceAddress0,
true /* expect_disconnect */)))

Powered by Google App Engine
This is Rietveld 408576698