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

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

Issue 2488283003: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: bluetooth: web: Rename Blacklist to Blocklist Created 4 years, 1 month 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 blocklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985";
ortuno 2016/11/14 22:29:39 I believe these are imported from the Web Platform
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 = "bad1c9a2-9a5b-4015-8b60-1579b bbf2135"; 8 var blocklist_exclude_reads_characteristic_uuid = "bad1c9a2-9a5b-4015-8b60-1579b bbf2135";
9 var request_disconnection_characteristic_uuid = "01d7d88a-7451-419f-aeb8-d65e7b9 277af"; 9 var request_disconnection_characteristic_uuid = "01d7d88a-7451-419f-aeb8-d65e7b9 277af";
10 // Descriptors: 10 // Descriptors:
11 var blacklist_exclude_reads_descriptor_uuid = "aaaaaaaa-aaaa-1181-0510-810819516 110"; 11 var blocklist_exclude_reads_descriptor_uuid = "aaaaaaaa-aaaa-1181-0510-810819516 110";
12 var blacklist_descriptor_uuid = "07711111-6104-0970-7011-1107105110aaa"; 12 var blocklist_descriptor_uuid = "07711111-6104-0970-7011-1107105110aaa";
13 var characteristic_user_description_uuid = "00002901-0000-1000-8000-00805f9b34fb "; 13 var characteristic_user_description_uuid = "00002901-0000-1000-8000-00805f9b34fb ";
14 14
15 // Bluetooth Adapter types: 15 // Bluetooth Adapter types:
16 var adapter_type = { 16 var adapter_type = {
17 not_present: 'NotPresentAdapter', 17 not_present: 'NotPresentAdapter',
18 not_powered: 'NotPoweredAdapter', 18 not_powered: 'NotPoweredAdapter',
19 empty: 'EmptyAdapter', 19 empty: 'EmptyAdapter',
20 heart_rate: 'HeartRateAdapter', 20 heart_rate: 'HeartRateAdapter',
21 two_heart_rate: 'TwoHeartRateServicesAdapter', 21 two_heart_rate: 'TwoHeartRateServicesAdapter',
22 empty_name_heart_rate: 'EmptyNameHeartRateAdapter', 22 empty_name_heart_rate: 'EmptyNameHeartRateAdapter',
23 no_name_heart_rate: 'NoNameHeartRateAdapter', 23 no_name_heart_rate: 'NoNameHeartRateAdapter',
24 glucose_heart_rate: 'GlucoseHeartRateAdapter', 24 glucose_heart_rate: 'GlucoseHeartRateAdapter',
25 unicode_device: 'UnicodeDeviceAdapter', 25 unicode_device: 'UnicodeDeviceAdapter',
26 blacklist: 'BlacklistTestAdapter', 26 blocklist: 'BlocklistTestAdapter',
27 missing_characteristic_heart_rate: 'MissingCharacteristicHeartRateAdapter', 27 missing_characteristic_heart_rate: 'MissingCharacteristicHeartRateAdapter',
28 missing_service_heart_rate: 'MissingServiceHeartRateAdapter', 28 missing_service_heart_rate: 'MissingServiceHeartRateAdapter',
29 missing_descriptor_heart_rate: 'MissingDescriptorHeartRateAdapter' 29 missing_descriptor_heart_rate: 'MissingDescriptorHeartRateAdapter'
30 }; 30 };
31 31
32 var mock_device_name = { 32 var mock_device_name = {
33 heart_rate: 'Heart Rate Device', 33 heart_rate: 'Heart Rate Device',
34 glucose: 'Glucose Device' 34 glucose: 'Glucose Device'
35 }; 35 };
36 36
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 138 };
139 139
140 // Helper function for converting strings to an array of bytes. 140 // Helper function for converting strings to an array of bytes.
141 function asciiToDecimal(bytestr) { 141 function asciiToDecimal(bytestr) {
142 var result = []; 142 var result = [];
143 for(var i = 0; i < bytestr.length; i++) { 143 for(var i = 0; i < bytestr.length; i++) {
144 result[i] = bytestr.charCodeAt(i) ; 144 result[i] = bytestr.charCodeAt(i) ;
145 } 145 }
146 return result; 146 return result;
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698