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

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

Issue 2615273002: Bump Bluetooth max filter name length from 29 bytes to 240 bytes (Closed)
Patch Set: Fix layout tests, begin to add new layout test Created 3 years, 11 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 # 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',
jeffcarp 2017/01/09 18:45:20 I'm still trying to figure out how to create the c
scheib 2017/01/09 19:26:49 They are created in content/shell/browser/layout_t
37 BLOCKLISTED_UUID, 38 BLOCKLISTED_UUID,
38 CONNECTION_ERROR_UUIDS[0], 39 CONNECTION_ERROR_UUIDS[0],
39 DISCONNECTION_UUID, 40 DISCONNECTION_UUID,
40 GATT_ERROR_UUID, 41 GATT_ERROR_UUID,
41 ] 42 ]
42 43
43 # List of services inside devices. 44 # List of services inside devices.
44 SERVICES = [ 45 SERVICES = [
45 'generic_access', 46 'generic_access',
46 'heart_rate', 47 'heart_rate',
47 'device_information', 48 'device_information',
48 'generic_access', 49 'generic_access',
49 'heart_rate', 50 'heart_rate',
50 'human_interface_device', 51 'human_interface_device',
52 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes',
51 BLOCKLISTED_UUID, 53 BLOCKLISTED_UUID,
52 DISCONNECTION_UUID, 54 DISCONNECTION_UUID,
53 GATT_ERROR_UUID, 55 GATT_ERROR_UUID,
54 ] 56 ]
55 57
56 # List of characteristics inside devices. 58 # List of characteristics inside devices.
57 CHARACTERISTICS = [ 59 CHARACTERISTICS = [
58 'bad1c9a2-9a5b-4015-8b60-1579bbbf2135', 60 'bad1c9a2-9a5b-4015-8b60-1579bbbf2135',
59 '01d7d88a-7451-419f-aeb8-d65e7b9277af', 61 '01d7d88a-7451-419f-aeb8-d65e7b9277af',
60 'body_sensor_location', 62 'body_sensor_location',
(...skipping 22 matching lines...) Expand all
83 'UnicodeDeviceAdapter', 85 'UnicodeDeviceAdapter',
84 'MissingServiceHeartRateAdapter', 86 'MissingServiceHeartRateAdapter',
85 'MissingCharacteristicHeartRateAdapter', 87 'MissingCharacteristicHeartRateAdapter',
86 'HeartRateAdapter', 88 'HeartRateAdapter',
87 'TwoHeartRateServicesAdapter', 89 'TwoHeartRateServicesAdapter',
88 'DisconnectingHeartRateAdapter', 90 'DisconnectingHeartRateAdapter',
89 'BlocklistTestAdapter', 91 'BlocklistTestAdapter',
90 'FailingConnectionsAdapter', 92 'FailingConnectionsAdapter',
91 'FailingGATTOperationsAdapter', 93 'FailingGATTOperationsAdapter',
92 'DelayedServicesDiscoveryAdapter', 94 'DelayedServicesDiscoveryAdapter',
95 'DeviceNameLongerThan29BytesAdapter',
93 ] 96 ]
94 97
95 # List of fake adapters that include devices. 98 # List of fake adapters that include devices.
96 ADAPTERS_WITH_DEVICES = [ 99 ADAPTERS_WITH_DEVICES = [
97 ( 100 (
98 'GlucoseHeartRateAdapter', 101 'GlucoseHeartRateAdapter',
99 ['generic_access', 'heart_rate', 'glucose', 'tx_power'], 102 ['generic_access', 'heart_rate', 'glucose', 'tx_power'],
100 ), 103 ),
101 ( 104 (
102 'MissingServiceHeartRateAdapter', 105 'MissingServiceHeartRateAdapter',
(...skipping 25 matching lines...) Expand all
128 CONNECTION_ERROR_UUIDS, 131 CONNECTION_ERROR_UUIDS,
129 ), 132 ),
130 ( 133 (
131 'FailingGATTOperationsAdapter', 134 'FailingGATTOperationsAdapter',
132 [GATT_ERROR_UUID], 135 [GATT_ERROR_UUID],
133 ), 136 ),
134 ( 137 (
135 'DelayedServicesDiscoveryAdapter', 138 'DelayedServicesDiscoveryAdapter',
136 ['generic_access', 'heart_rate'], 139 ['generic_access', 'heart_rate'],
137 ), 140 ),
141 (
142 'DeviceNameLongerThan29BytesAdapter',
143 ['a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes' ],
144 ),
138 ] 145 ]
139 146
140 # List of fake adapters with services. 147 # List of fake adapters with services.
141 ADAPTERS_WITH_SERVICES = [ 148 ADAPTERS_WITH_SERVICES = [
142 ( 149 (
143 'MissingCharacteristicHeartRateAdapter', 150 'MissingCharacteristicHeartRateAdapter',
144 ['generic_access', 'heart_rate'], 151 ['generic_access', 'heart_rate'],
145 ), 152 ),
146 ( 153 (
147 'HeartRateAdapter', 154 'HeartRateAdapter',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 '000000a2-97e5-4cd7-b9f1-f5a427670c59', 206 '000000a2-97e5-4cd7-b9f1-f5a427670c59',
200 '000000a3-97e5-4cd7-b9f1-f5a427670c59', 207 '000000a3-97e5-4cd7-b9f1-f5a427670c59',
201 '000000a4-97e5-4cd7-b9f1-f5a427670c59', 208 '000000a4-97e5-4cd7-b9f1-f5a427670c59',
202 '000000a5-97e5-4cd7-b9f1-f5a427670c59', 209 '000000a5-97e5-4cd7-b9f1-f5a427670c59',
203 '000000a6-97e5-4cd7-b9f1-f5a427670c59', 210 '000000a6-97e5-4cd7-b9f1-f5a427670c59',
204 '000000a7-97e5-4cd7-b9f1-f5a427670c59', 211 '000000a7-97e5-4cd7-b9f1-f5a427670c59',
205 '000000a8-97e5-4cd7-b9f1-f5a427670c59', 212 '000000a8-97e5-4cd7-b9f1-f5a427670c59',
206 ])], 213 ])],
207 ), 214 ),
208 ] 215 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698