OLD | NEW |
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 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; | 6 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; |
7 // Characteristics: | 7 // Characteristics: |
8 var blacklist_exclude_reads_characteristic_uuid = | 8 var blacklist_exclude_reads_characteristic_uuid = |
9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; | 9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; |
10 var request_disconnection_characteristic_uuid = | 10 var request_disconnection_characteristic_uuid = |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 filters: [{ services: services, name: 'Name' }], | 334 filters: [{ services: services, name: 'Name' }], |
335 optionalServices: ['heart_rate'] | 335 optionalServices: ['heart_rate'] |
336 }, { | 336 }, { |
337 filters: [{ services: services, namePrefix: 'Pre' }], | 337 filters: [{ services: services, namePrefix: 'Pre' }], |
338 optionalServices: ['heart_rate'] | 338 optionalServices: ['heart_rate'] |
339 }, { | 339 }, { |
340 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], | 340 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], |
341 optionalServices: ['heart_rate'] | 341 optionalServices: ['heart_rate'] |
342 }]; | 342 }]; |
343 } | 343 } |
344 | |
345 // Bluetooth tests sometimes have left-over state that could leak into the | |
346 // next test. add_result_callback which is exposed by testharness.js allows us | |
347 // to clean up this state after each test. Once the move to Mojo is complete | |
348 // we will no longer need to clean up the state manually. | |
349 // https://crbug.com/508771 | |
350 add_result_callback(() => { | |
351 setBluetoothFakeAdapter(''); | |
352 }); | |
OLD | NEW |