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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/gatt_aliases.py

Issue 2166913002: bluetooth: Generate random service uuid and generate random fake adapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fuzzer-basics
Patch Set: Address scheib's comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/gatt_aliases.py
diff --git a/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/gatt_aliases.py b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/gatt_aliases.py
new file mode 100644
index 0000000000000000000000000000000000000000..0920484d752c9b0bfe3f6b3f2bb3a1a6baa46619
--- /dev/null
+++ b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/gatt_aliases.py
@@ -0,0 +1,53 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Contains Services, Characteristics and Descriptor aliases.
+
+These values are copied from:
+
+https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx
+
+https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicsHome.aspx
+
+https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorsHomePage.aspx
+"""
+
+
+SERVICES = [
+ 'alert_notification',
+ 'automation_io',
+ 'battery_service',
+ 'blood_pressure',
+ 'body_composition',
+ 'bond_management',
+ 'continuous_glucose_monitoring',
+ 'current_time',
+ 'cycling_power',
+ 'cycling_speed_and_cadence',
+ 'device_information',
+ 'environmental_sensing',
+ 'generic_access',
+ 'generic_attribute',
+ 'glucose',
+ 'health_thermometer',
+ 'heart_rate',
+ 'http_proxy',
+ 'human_interface_device',
+ 'immediate_alert',
+ 'indoor_positioning',
+ 'internet_protocol_support',
+ 'link_loss',
+ 'location_and_navigation',
+ 'next_dst_change',
+ 'object_transfer',
+ 'phone_alert_status',
+ 'pulse_oximeter',
+ 'reference_time_update',
+ 'running_speed_and_cadence',
+ 'scan_parameters',
+ 'transport_discovery',
+ 'tx_power',
+ 'user_data',
+ 'weight_scale',
+]

Powered by Google App Engine
This is Rietveld 408576698