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

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

Issue 1287753002: bluetooth: Remove callback from BluetoothGattConnection::Disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/connect_in_progress/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
index 2b46450c731d6aaf4696ed5f91d275eaedcf7a9e..3eddfef169ea90a991767a913dec814d311de3c9 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
@@ -6,6 +6,7 @@ var deviceAddress0 = '11:22:33:44:55:66';
var ble = chrome.bluetoothLowEnergy;
var errorInProgress = 'In progress';
+var errorNotConnected = 'Not connected';
function expectError(message) {
if (!chrome.runtime.lastError ||
@@ -27,12 +28,14 @@ ble.connect(deviceAddress0, function () {
});
ble.disconnect(deviceAddress0, function () {
- expectError(errorInProgress);
- chrome.test.sendMessage('ready');
+ expectError(errorNotConnected);
+ chrome.test.sendMessage(
+ 'After 2nd call to disconnect.');
});
});
ble.connect(deviceAddress0, function () {
expectError(errorInProgress);
- chrome.test.sendMessage('ready');
+ chrome.test.sendMessage(
+ 'After 2nd connect fails due to 1st connect being in progress.');
});

Powered by Google App Engine
This is Rietveld 408576698