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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/advertising-data.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/advertising-data.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html b/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html
index 55df78e75f69c118cca1049fe0980fac20660b29..aba343a4b48d7b6aad2c1f716998f45e0650878e 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html
@@ -65,10 +65,11 @@ test(t => { assert_true(window.testRunner instanceof Object); t.done(); },
expected_rssi: null
}].forEach(power_test => {
promise_test(() => {
- testRunner.setBluetoothMockDataSet('PowerValueAdapter:' +
- power_test.tx_power + ':' +
- power_test.rssi);
- return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ return setBluetoothFakeAdapter('PowerValueAdapter:' +
+ power_test.tx_power + ':' +
+ power_test.rssi)
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
.then(device => {
let adv_data = device.adData;
assert_equals(adv_data.txPower, power_test.expected_tx_power);
@@ -96,10 +97,11 @@ test(t => { assert_true(window.testRunner instanceof Object); t.done(); },
rssi_present: true
}].forEach(power_test => {
promise_test(() => {
- testRunner.setBluetoothMockDataSet('PowerPresenceAdapter:' +
- power_test.tx_power_present + ':' +
- power_test.rssi_present);
- return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ return setBluetoothFakeAdapter('PowerPresenceAdapter:' +
+ power_test.tx_power_present + ':' +
+ power_test.rssi_present)
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
.then(device => {
let adv_data = device.adData;
let expected_tx_power = power_test.tx_power_present ?

Powered by Google App Engine
This is Rietveld 408576698