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

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

Issue 1415533006: bluetooth: Implement requestDevice by name or name prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Patch Set: Merge with ToT and fix histograms conflict Created 5 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 // Sometimes we need to test that using either the name, alias, or UUID 3 // Sometimes we need to test that using either the name, alias, or UUID
4 // produces the same result. The following objects help us do that. 4 // produces the same result. The following objects help us do that.
5 var generic_access = { 5 var generic_access = {
6 alias: 0x1800, 6 alias: 0x1800,
7 name: 'generic_access', 7 name: 'generic_access',
8 uuid: '00001800-0000-1000-8000-00805f9b34fb' 8 uuid: '00001800-0000-1000-8000-00805f9b34fb'
9 }; 9 };
10 var device_name = { 10 var device_name = {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 this.reliableWrite = properties.reliableWrite || false; 197 this.reliableWrite = properties.reliableWrite || false;
198 this.writableAuxiliaries = properties.writableAuxiliaries || false; 198 this.writableAuxiliaries = properties.writableAuxiliaries || false;
199 } 199 }
200 } 200 }
201 201
202 function assert_properties_equal(properties, expected_properties) { 202 function assert_properties_equal(properties, expected_properties) {
203 for (let key in expected_properties) { 203 for (let key in expected_properties) {
204 assert_equals(properties[key], expected_properties[key]); 204 assert_equals(properties[key], expected_properties[key]);
205 } 205 }
206 } 206 }
207
208 // Generates a string of size |size|.
209 function generate_string(size, char) {
210 // When passing an array of n undefined's to String the resulting string
211 // has size n - 1.
212 return char.repeat(size);
213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698