| Index: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py
|
| index f80fd5a664a393af467d7c6ecf36cf87839bdbb9..aeb53c4553b446c6ab8a942c918bed2f1b518c35 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py
|
| @@ -40,6 +40,19 @@ ADVERTISED_SERVICES = [
|
| GATT_ERROR_UUID,
|
| ]
|
|
|
| +# List of services inside devices.
|
| +SERVICES = [
|
| + 'generic_access',
|
| + 'heart_rate',
|
| + 'device_information',
|
| + 'generic_access',
|
| + 'heart_rate',
|
| + 'human_interface_device',
|
| + BLACKLISTED_UUID,
|
| + DISCONNECTION_UUID,
|
| + GATT_ERROR_UUID,
|
| +]
|
| +
|
| # List of available fake adapters.
|
| ALL_ADAPTERS = [
|
| 'NotPresentAdapter',
|
| @@ -59,6 +72,17 @@ ALL_ADAPTERS = [
|
| 'DelayedServicesDiscoveryAdapter',
|
| ]
|
|
|
| +# List of characteristics inside devices.
|
| +CHARACTERISTICS = [
|
| + 'bad1c9a2-9a5b-4015-8b60-1579bbbf2135',
|
| + '01d7d88a-7451-419f-aeb8-d65e7b9277af',
|
| + 'body_sensor_location',
|
| + 'gap.device_name',
|
| + 'heart_rate_measurement',
|
| + 'serial_number_string',
|
| + 'gap.peripheral_privacy_flag',
|
| +]
|
| +
|
| # List of fake adapters that include devices.
|
| ADAPTERS_WITH_DEVICES = [
|
| (
|
| @@ -136,3 +160,48 @@ ADAPTERS_WITH_SERVICES = [
|
| ['heart_rate']
|
| ),
|
| ]
|
| +
|
| +GENERIC_ACCESS_SERVICE = (
|
| + 'generic_access', ['gap.device_name', 'gap.peripheral_privacy_flag']
|
| +)
|
| +
|
| +HEART_RATE_SERVICE = (
|
| + 'heart_rate', ['heart_rate_measurement', 'body_sensor_location']
|
| +)
|
| +
|
| +ADAPTERS_WITH_CHARACTERISTICS = [
|
| + # (
|
| + # 'HeartRateAdapter',
|
| + # [GENERIC_ACCESS_SERVICE, HEART_RATE_SERVICE],
|
| + # ),
|
| + # (
|
| + # 'TwoHeartRateServicesAdapter',
|
| + # [HEART_RATE_SERVICE],
|
| + # ),
|
| + # (
|
| + # 'DisconnectingHeartRateAdapter',
|
| + # [GENERIC_ACCESS_SERVICE, HEART_RATE_SERVICE,
|
| + # (DISCONNECTION_UUID, ['01d7d88a-7451-419f-aeb8-d65e7b9277af'])]
|
| + # ),
|
| + # (
|
| + # 'BlacklistTestAdapter',
|
| + # [GENERIC_ACCESS_SERVICE, HEART_RATE_SERVICE, (
|
| + # BLACKLISTED_UUID, ['bad1c9a2-9a5b-4015-8b60-1579bbbf2135'],
|
| + # ), (
|
| + # 'device_information', ['serial_number_string'],
|
| + # )]
|
| + # ),
|
| + (
|
| + 'FailingGATTOperationsAdapter',
|
| + [(GATT_ERROR_UUID, [
|
| + '000000a1-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a2-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a3-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a4-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a5-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a6-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a7-97e5-4cd7-b9f1-f5a427670c59',
|
| + '000000a8-97e5-4cd7-b9f1-f5a427670c59',
|
| + ])],
|
| + ),
|
| +]
|
|
|