Chromium Code Reviews| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 // - Request Disconnection Service: - Characteristics as described in | 313 // - Request Disconnection Service: - Characteristics as described in |
| 314 // GetDisconnectingService | 314 // GetDisconnectingService |
| 315 // - Health Thermometer: | 315 // - Health Thermometer: |
| 316 // - Measurement Interval (0x2a21): | 316 // - Measurement Interval (0x2a21): |
| 317 // - Read: Calls GattCharacteristicValueChanged and success | 317 // - Read: Calls GattCharacteristicValueChanged and success |
| 318 // callback with [1]. | 318 // callback with [1]. |
| 319 // - Write: Calls success callback. | 319 // - Write: Calls success callback. |
| 320 // - StartNotifySession: Run success callback. | 320 // - StartNotifySession: Run success callback. |
| 321 // - GetProperties: Returns | 321 // - GetProperties: Returns |
| 322 // BluetoothRemoteGattCharacteristic::PROPERTY_READ | 322 // BluetoothRemoteGattCharacteristic::PROPERTY_READ |
| 323 // - Descriptors | |
| 324 // - user_description | |
| 325 // Read calls success callback | |
| 326 // - client_characteristic_configuration | |
| 327 // Write calls success callback | |
| 328 // Note: This description must be blacklisted. | |
|
ortuno
2016/12/02 06:14:50
We should make it fail like the other blacklisted
dougt
2016/12/02 18:31:28
Acknowledged blocklist name change (following what
| |
| 329 | |
| 323 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 330 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 324 GetDisconnectingHealthThermometer(); | 331 GetDisconnectingHealthThermometer(); |
| 325 | 332 |
| 326 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect) | 333 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect) |
| 327 // Inherits from |HeartRateAdapter| | 334 // Inherits from |HeartRateAdapter| |
| 328 // Internal Structure: | 335 // Internal Structure: |
| 329 // - Heart Rate Device | 336 // - Heart Rate Device |
| 330 // - UUIDs: | 337 // - UUIDs: |
| 331 // - Generic Access UUID (0x1800) | 338 // - Generic Access UUID (0x1800) |
| 332 // - Heart Rate UUID (0x180d) | 339 // - Heart Rate UUID (0x180d) |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 820 | 827 |
| 821 // Returns a stable test data UUID associated with a given | 828 // Returns a stable test data UUID associated with a given |
| 822 // BluetoothDevice::ConnectErrorCode. | 829 // BluetoothDevice::ConnectErrorCode. |
| 823 static device::BluetoothUUID connectErrorUUID( | 830 static device::BluetoothUUID connectErrorUUID( |
| 824 device::BluetoothDevice::ConnectErrorCode error_code); | 831 device::BluetoothDevice::ConnectErrorCode error_code); |
| 825 | 832 |
| 826 // Function to turn an integer into an MAC address of the form | 833 // Function to turn an integer into an MAC address of the form |
| 827 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 834 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
| 828 // returns "00:00:DE:AD:BE:EF". | 835 // returns "00:00:DE:AD:BE:EF". |
| 829 static std::string makeMACAddress(uint64_t addr); | 836 static std::string makeMACAddress(uint64_t addr); |
| 837 | |
| 838 // Adds the following descriptors to the characteristic: | |
| 839 // - user_description | |
| 840 // Read calls success callback | |
| 841 // - client_characteristic_configuration | |
| 842 // Write calls success callback | |
| 843 // Note: This description must be blacklisted. | |
|
ortuno
2016/12/02 06:14:50
We should make it fail like the other blacklisted
dougt
2016/12/02 18:31:28
Acknowledged.
| |
| 844 static void AddDescriptorsToCharacteristic( | |
| 845 device::MockBluetoothGattCharacteristic* characteristic); | |
| 830 }; | 846 }; |
| 831 | 847 |
| 832 } // namespace content | 848 } // namespace content |
| 833 | 849 |
| 834 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ | 850 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ |
| OLD | NEW |