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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py

Issue 2642123003: Bluetooth: Make maximum possible name filter 248 bytes, not 240 (Closed)
Patch Set: Change all NotFoundErrors to TypeErrors Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Module that contains information about Web Bluetooth's Fake Adapters.""" 5 """Module that contains information about Web Bluetooth's Fake Adapters."""
6 6
7 BLOCKLISTED_UUID = '611c954a-263b-4f4a-aab6-01ddb953f985' 7 BLOCKLISTED_UUID = '611c954a-263b-4f4a-aab6-01ddb953f985'
8 DISCONNECTION_UUID = '01d7d889-7451-419f-aeb8-d65e7b9277af' 8 DISCONNECTION_UUID = '01d7d889-7451-419f-aeb8-d65e7b9277af'
9 GATT_ERROR_UUID = '000000a0-97e5-4cd7-b9f1-f5a427670c59' 9 GATT_ERROR_UUID = '000000a0-97e5-4cd7-b9f1-f5a427670c59'
10 10
(...skipping 16 matching lines...) Expand all
27 ] 27 ]
28 28
29 # List of services that are included in our fake adapters. 29 # List of services that are included in our fake adapters.
30 ADVERTISED_SERVICES = [ 30 ADVERTISED_SERVICES = [
31 'generic_access', 31 'generic_access',
32 'glucose', 32 'glucose',
33 'tx_power', 33 'tx_power',
34 'heart_rate', 34 'heart_rate',
35 'human_interface_device', 35 'human_interface_device',
36 'device_information', 36 'device_information',
37 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes', 37 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_248_bytes',
38 BLOCKLISTED_UUID, 38 BLOCKLISTED_UUID,
39 CONNECTION_ERROR_UUIDS[0], 39 CONNECTION_ERROR_UUIDS[0],
40 DISCONNECTION_UUID, 40 DISCONNECTION_UUID,
41 GATT_ERROR_UUID, 41 GATT_ERROR_UUID,
42 ] 42 ]
43 43
44 # List of services inside devices. 44 # List of services inside devices.
45 SERVICES = [ 45 SERVICES = [
46 'generic_access', 46 'generic_access',
47 'heart_rate', 47 'heart_rate',
48 'device_information', 48 'device_information',
49 'generic_access', 49 'generic_access',
50 'heart_rate', 50 'heart_rate',
51 'human_interface_device', 51 'human_interface_device',
52 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes', 52 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_248_bytes',
53 BLOCKLISTED_UUID, 53 BLOCKLISTED_UUID,
54 DISCONNECTION_UUID, 54 DISCONNECTION_UUID,
55 GATT_ERROR_UUID, 55 GATT_ERROR_UUID,
56 ] 56 ]
57 57
58 # List of characteristics inside devices. 58 # List of characteristics inside devices.
59 CHARACTERISTICS = [ 59 CHARACTERISTICS = [
60 'bad1c9a2-9a5b-4015-8b60-1579bbbf2135', 60 'bad1c9a2-9a5b-4015-8b60-1579bbbf2135',
61 '01d7d88a-7451-419f-aeb8-d65e7b9277af', 61 '01d7d88a-7451-419f-aeb8-d65e7b9277af',
62 'body_sensor_location', 62 'body_sensor_location',
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ( 133 (
134 'FailingGATTOperationsAdapter', 134 'FailingGATTOperationsAdapter',
135 [GATT_ERROR_UUID], 135 [GATT_ERROR_UUID],
136 ), 136 ),
137 ( 137 (
138 'DelayedServicesDiscoveryAdapter', 138 'DelayedServicesDiscoveryAdapter',
139 ['generic_access', 'heart_rate'], 139 ['generic_access', 'heart_rate'],
140 ), 140 ),
141 ( 141 (
142 'DeviceNameLongerThan29BytesAdapter', 142 'DeviceNameLongerThan29BytesAdapter',
143 ['a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes' ], 143 ['a_device_name_that_is_longer_than_29_bytes_but_shorter_than_248_bytes' ],
144 ), 144 ),
145 ] 145 ]
146 146
147 # List of fake adapters with services. 147 # List of fake adapters with services.
148 ADAPTERS_WITH_SERVICES = [ 148 ADAPTERS_WITH_SERVICES = [
149 ( 149 (
150 'MissingCharacteristicHeartRateAdapter', 150 'MissingCharacteristicHeartRateAdapter',
151 ['generic_access', 'heart_rate'], 151 ['generic_access', 'heart_rate'],
152 ), 152 ),
153 ( 153 (
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 '000000a2-97e5-4cd7-b9f1-f5a427670c59', 206 '000000a2-97e5-4cd7-b9f1-f5a427670c59',
207 '000000a3-97e5-4cd7-b9f1-f5a427670c59', 207 '000000a3-97e5-4cd7-b9f1-f5a427670c59',
208 '000000a4-97e5-4cd7-b9f1-f5a427670c59', 208 '000000a4-97e5-4cd7-b9f1-f5a427670c59',
209 '000000a5-97e5-4cd7-b9f1-f5a427670c59', 209 '000000a5-97e5-4cd7-b9f1-f5a427670c59',
210 '000000a6-97e5-4cd7-b9f1-f5a427670c59', 210 '000000a6-97e5-4cd7-b9f1-f5a427670c59',
211 '000000a7-97e5-4cd7-b9f1-f5a427670c59', 211 '000000a7-97e5-4cd7-b9f1-f5a427670c59',
212 '000000a8-97e5-4cd7-b9f1-f5a427670c59', 212 '000000a8-97e5-4cd7-b9f1-f5a427670c59',
213 ])], 213 ])],
214 ), 214 ),
215 ] 215 ]
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698