| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // - Generic Access UUID (0x1800) | 226 // - Generic Access UUID (0x1800) |
| 227 // - Heart Rate UUID (0x180d) | 227 // - Heart Rate UUID (0x180d) |
| 228 // - Services: | 228 // - Services: |
| 229 // - Generic Access Service - Characteristics as described in | 229 // - Generic Access Service - Characteristics as described in |
| 230 // GetGenericAccessService. | 230 // GetGenericAccessService. |
| 231 // - Heart Rate Service - Characteristics as described in | 231 // - Heart Rate Service - Characteristics as described in |
| 232 // GetHeartRateService. | 232 // GetHeartRateService. |
| 233 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 233 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 234 GetHeartRateAdapter(); | 234 GetHeartRateAdapter(); |
| 235 | 235 |
| 236 // |GetEmptyNameDeviceAdapter| |
| 237 // Inherits from |EmptyAdapter| |
| 238 // Contains a single device with an empty name and no UUIDs. |
| 239 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 240 GetEmptyNameDeviceAdapter(); |
| 241 |
| 242 // |GetNoNameDeviceAdapter| |
| 243 // Inherits from |EmptyAdapter| |
| 244 // Contains a single device with no name and no UUIDs. |
| 245 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 246 GetNoNameDeviceAdapter(); |
| 247 |
| 236 // |GetEmptyNameHeartRateAdapter| | 248 // |GetEmptyNameHeartRateAdapter| |
| 237 // Inherits from |EmptyAdapter| | 249 // Inherits from |EmptyAdapter| |
| 238 // Internal Structure: | 250 // Internal Structure: |
| 239 // - Heart Rate Device | 251 // - Heart Rate Device |
| 240 // - UUIDs: | 252 // - UUIDs: |
| 241 // - Generic Access UUID (0x1800) | 253 // - Generic Access UUID (0x1800) |
| 242 // - Heart Rate UUID (0x180d) | 254 // - Heart Rate UUID (0x180d) |
| 243 // - Services: | 255 // - Services: |
| 244 // - Generic Access Service - Characteristics as described in | 256 // - Generic Access Service - Characteristics as described in |
| 245 // GetGenericAccessService. | 257 // GetGenericAccessService. |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 | 837 |
| 826 // Function to turn an integer into an MAC address of the form | 838 // Function to turn an integer into an MAC address of the form |
| 827 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 839 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
| 828 // returns "00:00:DE:AD:BE:EF". | 840 // returns "00:00:DE:AD:BE:EF". |
| 829 static std::string makeMACAddress(uint64_t addr); | 841 static std::string makeMACAddress(uint64_t addr); |
| 830 }; | 842 }; |
| 831 | 843 |
| 832 } // namespace content | 844 } // namespace content |
| 833 | 845 |
| 834 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 846 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
| OLD | NEW |