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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VI Created 4 years, 11 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: chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js
index 73615a6e438dd6d14fb7055abf6ad1eab0d3e321..77161fcebb6f7e96a249cede2d6a8a18c8fe7071 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js
@@ -17,6 +17,13 @@ var errorCanceled = 'Request canceled';
var errorTimeout = 'Operation timed out';
var errorUnsupportedDevice = 'This device is not supported on ' +
'the current platform';
+var errorAttributeLengthInvalid = 'Attribute length invalid';
+var errorConnectionCongested = 'Connection congested';
+var errorInsufficientEncryption = 'Insufficient encryption';
+var errorOffsetInvalid = 'Offset invalid';
+var errorReadNotPermitted = 'Permission denied';
+var errorRequestNotSupported = 'Request not supported';
+var errorWriteNotPermitted = 'Permission denied';
function expectError(message) {
if (!chrome.runtime.lastError)
@@ -69,6 +76,13 @@ queue = [function() {
makeConnectErrorFunction(errorCanceled),
makeConnectErrorFunction(errorTimeout),
makeConnectErrorFunction(errorUnsupportedDevice),
+ makeConnectErrorFunction(errorAttributeLengthInvalid),
+ makeConnectErrorFunction(errorConnectionCongested),
+ makeConnectErrorFunction(errorInsufficientEncryption),
+ makeConnectErrorFunction(errorOffsetInvalid),
+ makeConnectErrorFunction(errorReadNotPermitted),
+ makeConnectErrorFunction(errorRequestNotSupported),
+ makeConnectErrorFunction(errorWriteNotPermitted),
function () {
expectSuccess();

Powered by Google App Engine
This is Rietveld 408576698