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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 years, 9 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: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
diff --git a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
index a6f9310c828e78020a41e9ec14b2ea6184242e0d..9667135fc81c91037b7679d1f1ad28438bfffad3 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
+++ b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
@@ -150,6 +150,12 @@ function getBluetoothManualChooserEvents(expected_count) {
});
}
+function setBluetoothFakeAdapter(adapter_name) {
+ return new Promise(resolve => {
+ testRunner.setBluetoothFakeAdapter(adapter_name, resolve);
+ });
+}
+
// errorUUID(alias) returns a UUID with the top 32 bits of
// '00000000-97e5-4cd7-b9f1-f5a427670c59' replaced with the bits of |alias|.
// For example, errorUUID(0xDEADBEEF) returns
@@ -318,5 +324,6 @@ add_result_callback(() => {
// https://crbug.com/581855
testRunner.setPageVisibility('hidden');
testRunner.setPageVisibility('visible');
- testRunner.setBluetoothMockDataSet('');
+ testRunner.setBluetoothManualChooser(false);
+ setBluetoothFakeAdapter('');
});

Powered by Google App Engine
This is Rietveld 408576698