| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // |PresentAdapter| | 49 // |PresentAdapter| |
| 50 // Inherits from |BaseAdapter| | 50 // Inherits from |BaseAdapter| |
| 51 // Devices added: | 51 // Devices added: |
| 52 // None. | 52 // None. |
| 53 // Mock Functions: | 53 // Mock Functions: |
| 54 // - IsPresent: Returns true | 54 // - IsPresent: Returns true |
| 55 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 55 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 56 GetPresentAdapter(); | 56 GetPresentAdapter(); |
| 57 | 57 |
| 58 // |NotPresentAdapter| | |
| 59 // Inherits from |BaseAdapter| | |
| 60 // Devices added: | |
| 61 // None. | |
| 62 // Mock Functions: | |
| 63 // - IsPresent: Returns false | |
| 64 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | |
| 65 GetNotPresentAdapter(); | |
| 66 | |
| 67 // |PoweredAdapter| | 58 // |PoweredAdapter| |
| 68 // Inherits from |PresentAdapter| | 59 // Inherits from |PresentAdapter| |
| 69 // Devices added: | 60 // Devices added: |
| 70 // None. | 61 // None. |
| 71 // Mock Functions: | 62 // Mock Functions: |
| 72 // - IsPowered: Returns true | 63 // - IsPowered: Returns true |
| 73 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 64 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 74 GetPoweredAdapter(); | 65 GetPoweredAdapter(); |
| 75 | 66 |
| 76 // |NotPoweredAdapter| | |
| 77 // Inherits from |PresentAdapter| | |
| 78 // Devices added: | |
| 79 // None. | |
| 80 // Mock Functions: | |
| 81 // - IsPowered: Returns false | |
| 82 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | |
| 83 GetNotPoweredAdapter(); | |
| 84 | |
| 85 // |ScanFilterCheckingAdapter| | 67 // |ScanFilterCheckingAdapter| |
| 86 // Inherits from |PoweredAdapter| | 68 // Inherits from |PoweredAdapter| |
| 87 // BluetoothAdapter that asserts that its StartDiscoverySessionWithFilter() | 69 // BluetoothAdapter that asserts that its StartDiscoverySessionWithFilter() |
| 88 // method is called with a filter consisting of the standard battery, heart | 70 // method is called with a filter consisting of the standard battery, heart |
| 89 // rate, and glucose services. | 71 // rate, and glucose services. |
| 90 // Devices added: | 72 // Devices added: |
| 91 // - |BatteryDevice| | 73 // - |BatteryDevice| |
| 92 // Mock Functions: | 74 // Mock Functions: |
| 93 // - StartDiscoverySessionWithFilter: | 75 // - StartDiscoverySessionWithFilter: |
| 94 // - With correct arguments: Run success callback. | 76 // - With correct arguments: Run success callback. |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 825 |
| 844 // Function to turn an integer into an MAC address of the form | 826 // Function to turn an integer into an MAC address of the form |
| 845 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 827 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
| 846 // returns "00:00:DE:AD:BE:EF". | 828 // returns "00:00:DE:AD:BE:EF". |
| 847 static std::string makeMACAddress(uint64_t addr); | 829 static std::string makeMACAddress(uint64_t addr); |
| 848 }; | 830 }; |
| 849 | 831 |
| 850 } // namespace content | 832 } // namespace content |
| 851 | 833 |
| 852 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 834 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
| OLD | NEW |