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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 9 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
10 #include "device/bluetooth/test/mock_bluetooth_device.h" | 10 #include "device/bluetooth/test/mock_bluetooth_device.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 GetEmptyAdapter(); | 114 GetEmptyAdapter(); |
115 | 115 |
116 // |GlucoseHeartRateAdapter| | 116 // |GlucoseHeartRateAdapter| |
117 // Inherits from |EmptyAdapter| | 117 // Inherits from |EmptyAdapter| |
118 // Devices added: | 118 // Devices added: |
119 // - |GlucoseDevice| | 119 // - |GlucoseDevice| |
120 // - |HeartRateDevice| | 120 // - |HeartRateDevice| |
121 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 121 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
122 GetGlucoseHeartRateAdapter(); | 122 GetGlucoseHeartRateAdapter(); |
123 | 123 |
| 124 // |SecondDiscoveryFindsHeartRateAdapter| |
| 125 // Inherits from |PoweredAdapter| |
| 126 // Mock Functions: |
| 127 // - StartDiscoverySessionWithFilter: |
| 128 // Run success callback with |DiscoverySession|. |
| 129 // After the first call, adds a |HeartRateDevice|. |
| 130 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 131 GetSecondDiscoveryFindsHeartRateAdapter(); |
| 132 |
124 // |MissingServiceGenericAccessAdapter| | 133 // |MissingServiceGenericAccessAdapter| |
125 // Inherits from |EmptyAdapter| | 134 // Inherits from |EmptyAdapter| |
126 // Internal Structure: | 135 // Internal Structure: |
127 // - Generic Access Device | 136 // - Generic Access Device |
128 // - Generic Access UUID (0x1800) | 137 // - Generic Access UUID (0x1800) |
129 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 138 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
130 GetMissingServiceGenericAccessAdapter(); | 139 GetMissingServiceGenericAccessAdapter(); |
131 | 140 |
132 // |MissingCharacteristicGenericAccessAdapter| | 141 // |MissingCharacteristicGenericAccessAdapter| |
133 // Inherits from |EmptyAdapter| | 142 // Inherits from |EmptyAdapter| |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 416 |
408 // Function to turn an integer into an MAC address of the form | 417 // Function to turn an integer into an MAC address of the form |
409 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 418 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
410 // returns "00:00:DE:AD:BE:EF". | 419 // returns "00:00:DE:AD:BE:EF". |
411 static std::string makeMACAddress(uint64_t addr); | 420 static std::string makeMACAddress(uint64_t addr); |
412 }; | 421 }; |
413 | 422 |
414 } // namespace content | 423 } // namespace content |
415 | 424 |
416 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 425 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
OLD | NEW |