| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER
_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER
_H_ |
| 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER
_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER
_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // - Request Disconnection Service: - Characteristics as described in | 325 // - Request Disconnection Service: - Characteristics as described in |
| 326 // GetDisconnectingService | 326 // GetDisconnectingService |
| 327 // - Health Thermometer: | 327 // - Health Thermometer: |
| 328 // - Measurement Interval (0x2a21): | 328 // - Measurement Interval (0x2a21): |
| 329 // - Read: Calls GattCharacteristicValueChanged and success | 329 // - Read: Calls GattCharacteristicValueChanged and success |
| 330 // callback with [1]. | 330 // callback with [1]. |
| 331 // - Write: Calls success callback. | 331 // - Write: Calls success callback. |
| 332 // - StartNotifySession: Run success callback. | 332 // - StartNotifySession: Run success callback. |
| 333 // - GetProperties: Returns | 333 // - GetProperties: Returns |
| 334 // BluetoothRemoteGattCharacteristic::PROPERTY_READ | 334 // BluetoothRemoteGattCharacteristic::PROPERTY_READ |
| 335 // - Descriptors | 335 // - Descriptors (if |addDescriptor| input is true) |
| 336 // - User Description (2901) | 336 // - User Description (2901) |
| 337 // - Client Characteristic Configuration (2902) | 337 // - Client Characteristic Configuration (2902) |
| 338 // Note: This descriptor is blocklisted for writes. | 338 // Note: This descriptor is blocklisted for writes. |
| 339 // - bad2ddcf-60db-45cd-bef9-fd72b153cf7c | 339 // - bad2ddcf-60db-45cd-bef9-fd72b153cf7c |
| 340 // A test descriptor that is blocklisted. | 340 // A test descriptor that is blocklisted. |
| 341 | 341 |
| 342 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 342 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 343 GetDisconnectingHealthThermometer(); | 343 GetDisconnectingHealthThermometer(bool addDescriptor); |
| 344 | 344 |
| 345 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect) | 345 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect) |
| 346 // Inherits from |HeartRateAdapter| | 346 // Inherits from |HeartRateAdapter| |
| 347 // Internal Structure: | 347 // Internal Structure: |
| 348 // - Heart Rate Device | 348 // - Heart Rate Device |
| 349 // - UUIDs: | 349 // - UUIDs: |
| 350 // - Generic Access UUID (0x1800) | 350 // - Generic Access UUID (0x1800) |
| 351 // - Heart Rate UUID (0x180d) | 351 // - Heart Rate UUID (0x180d) |
| 352 // - Services: | 352 // - Services: |
| 353 // - Generic Access Service - Characteristics as described in | 353 // - Generic Access Service - Characteristics as described in |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 | 844 |
| 845 // Function to turn an integer into an MAC address of the form | 845 // Function to turn an integer into an MAC address of the form |
| 846 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 846 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
| 847 // returns "00:00:DE:AD:BE:EF". | 847 // returns "00:00:DE:AD:BE:EF". |
| 848 static std::string makeMACAddress(uint64_t addr); | 848 static std::string makeMACAddress(uint64_t addr); |
| 849 }; | 849 }; |
| 850 | 850 |
| 851 } // namespace content | 851 } // namespace content |
| 852 | 852 |
| 853 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 853 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
| OLD | NEW |