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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // - Advertised UUIDs: | 198 // - Advertised UUIDs: |
199 // - Heart Rate UUID (0x180d) | 199 // - Heart Rate UUID (0x180d) |
200 // - Services: | 200 // - Services: |
201 // - Generic Access Service - Characteristics as described in | 201 // - Generic Access Service - Characteristics as described in |
202 // GetGenericAccessService. | 202 // GetGenericAccessService. |
203 // - Heart Rate Service - Characteristics as described in | 203 // - Heart Rate Service - Characteristics as described in |
204 // GetHeartRateService. | 204 // GetHeartRateService. |
205 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 205 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
206 GetHeartRateAdapter(); | 206 GetHeartRateAdapter(); |
207 | 207 |
| 208 // |HeartRateAndHIDAdapter| |
| 209 // Inherits from |EmptyAdapter| |
| 210 // Internal Structure: |
| 211 // - |ConnectableDevice|(adapter, "Heart Rate And HID Device", uuids) |
| 212 // - Advertised UUIDs: |
| 213 // - Heart Rate UUID (0x180d) |
| 214 // - Human Interface Device UUID (0x1812) (a blacklisted service) |
| 215 // - Services: |
| 216 // - Generic Access Service - Characteristics as described in |
| 217 // GetGenericAccessService. |
| 218 // - Heart Rate Service - Characteristics as described in |
| 219 // GetHeartRateService. |
| 220 // - Human Interface Device Service - No characteristics needed |
| 221 // because the service is blacklisted. |
| 222 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 223 GetHeartRateAndHIDAdapter(); |
| 224 |
208 // |DelayedServicesDiscoveryAdapter| | 225 // |DelayedServicesDiscoveryAdapter| |
209 // Inherits from |EmptyAdapter| | 226 // Inherits from |EmptyAdapter| |
210 // Internal Structure: | 227 // Internal Structure: |
211 // - Heart Rate Device | 228 // - Heart Rate Device |
212 // - Generic Access UUID (0x1800) | 229 // - Generic Access UUID (0x1800) |
213 // - Heart Rate UUID (0x180D) | 230 // - Heart Rate UUID (0x180D) |
214 // - Heart Rate Service (No services will be returned the first time | 231 // - Heart Rate Service (No services will be returned the first time |
215 // GetServices is called. Subsequent calls will | 232 // GetServices is called. Subsequent calls will |
216 // return the Heart Rate Service) | 233 // return the Heart Rate Service) |
217 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 234 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 567 |
551 // Function to turn an integer into an MAC address of the form | 568 // Function to turn an integer into an MAC address of the form |
552 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 569 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
553 // returns "00:00:DE:AD:BE:EF". | 570 // returns "00:00:DE:AD:BE:EF". |
554 static std::string makeMACAddress(uint64_t addr); | 571 static std::string makeMACAddress(uint64_t addr); |
555 }; | 572 }; |
556 | 573 |
557 } // namespace content | 574 } // namespace content |
558 | 575 |
559 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 576 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
OLD | NEW |