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

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

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Address moar comments! Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 'use strict'; 1 'use strict';
2 2
3 // Bluetooth UUID constants: 3 // Bluetooth UUID constants:
4 // Services: 4 // Services:
5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985";
6 // Characteristics: 6 // Characteristics:
7 var blacklist_exclude_reads_characteristic_uuid = 7 var blacklist_exclude_reads_characteristic_uuid =
8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; 8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135";
9 9
10 // Sometimes we need to test that using either the name, alias, or UUID 10 // Sometimes we need to test that using either the name, alias, or UUID
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 filters: [{ services: services, name: 'Name' }], 321 filters: [{ services: services, name: 'Name' }],
322 optionalServices: ['heart_rate'] 322 optionalServices: ['heart_rate']
323 }, { 323 }, {
324 filters: [{ services: services, namePrefix: 'Pre' }], 324 filters: [{ services: services, namePrefix: 'Pre' }],
325 optionalServices: ['heart_rate'] 325 optionalServices: ['heart_rate']
326 }, { 326 }, {
327 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], 327 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }],
328 optionalServices: ['heart_rate'] 328 optionalServices: ['heart_rate']
329 }]; 329 }];
330 } 330 }
331
332 // Bluetooth tests sometimes have left-over state that could leak into the
333 // next test. add_result_callback which is exposed by testharness.js allows us
334 // to clean up this state after each test. Once the move to Mojo is complete
335 // we will no longer need to clean up the state manually.
336 // https://crbug.com/508771
337 add_result_callback(() => {
338 setBluetoothFakeAdapter('');
339 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698