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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/disconnect.html

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/disconnect.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/disconnect.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
index 553104ab0c88809ab763aa49dd1844b70c5a64e5..037122e4c289c413d78df8ecd38076259d80578c 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
@@ -12,8 +12,9 @@ test(t => { assert_true(window.testRunner instanceof Object); t.done(); },
// called on the device.
// http://crbug.com/569716
promise_test(() => {
- testRunner.setBluetoothMockDataSet('HeartRateAdapter');
- return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ return setBluetoothFakeAdapter('HeartRateAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
.then(device => device.gatt.connect())
.then(gattServer => {
gattServer.disconnect();
@@ -22,8 +23,9 @@ promise_test(() => {
}, '\'connected\' is set to false after disconnect is called.');
promise_test(() => {
- testRunner.setBluetoothMockDataSet('HeartRateAdapter');
- return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ return setBluetoothFakeAdapter('HeartRateAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
.then(device => device.gatt.connect())
.then(gattServer => {
gattServer.disconnect();
@@ -35,8 +37,9 @@ promise_test(() => {
'being false.');
promise_test(() => {
- testRunner.setBluetoothMockDataSet('HeartRateAdapter');
- return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ return setBluetoothFakeAdapter('HeartRateAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
.then(device => {
return device.gatt.connect().then(gattServer => {
gattServer.disconnect();

Powered by Google App Engine
This is Rietveld 408576698