| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // Internal Structure: | 456 // Internal Structure: |
| 457 // - Heart Rate Device | 457 // - Heart Rate Device |
| 458 // - Generic Access UUID (0x1800) | 458 // - Generic Access UUID (0x1800) |
| 459 // - Heart Rate UUID (0x180D) | 459 // - Heart Rate UUID (0x180D) |
| 460 // - Heart Rate Service (No services will be returned the first time | 460 // - Heart Rate Service (No services will be returned the first time |
| 461 // GetServices is called. Subsequent calls will | 461 // GetServices is called. Subsequent calls will |
| 462 // return the Heart Rate Service) | 462 // return the Heart Rate Service) |
| 463 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> | 463 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 464 GetDelayedServicesDiscoveryAdapter(); | 464 GetDelayedServicesDiscoveryAdapter(); |
| 465 | 465 |
| 466 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| 467 GetStopDiscoveryAdapterDiscoveringChanged(); |
| 468 |
| 466 // |FailingConnectionsAdapter| | 469 // |FailingConnectionsAdapter| |
| 467 // Inherits from |EmptyAdapter| | 470 // Inherits from |EmptyAdapter| |
| 468 // FailingConnectionsAdapter holds a device for each type of connection error | 471 // FailingConnectionsAdapter holds a device for each type of connection error |
| 469 // that can occur. This way we don’t need to create an adapter for each type | 472 // that can occur. This way we don’t need to create an adapter for each type |
| 470 // of error. Each of the devices has a service with a different UUID so that | 473 // of error. Each of the devices has a service with a different UUID so that |
| 471 // they can be accessed by using different filters. | 474 // they can be accessed by using different filters. |
| 472 // See connectErrorUUID() declaration below. | 475 // See connectErrorUUID() declaration below. |
| 473 // Internal Structure: | 476 // Internal Structure: |
| 474 // - UnconnectableDevice(BluetoothDevice::ERROR_UNKNOWN) | 477 // - UnconnectableDevice(BluetoothDevice::ERROR_UNKNOWN) |
| 475 // connectErrorUUID(0x0) | 478 // connectErrorUUID(0x0) |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 | 858 |
| 856 // Function to turn an integer into an MAC address of the form | 859 // Function to turn an integer into an MAC address of the form |
| 857 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) | 860 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) |
| 858 // returns "00:00:DE:AD:BE:EF". | 861 // returns "00:00:DE:AD:BE:EF". |
| 859 static std::string makeMACAddress(uint64_t addr); | 862 static std::string makeMACAddress(uint64_t addr); |
| 860 }; | 863 }; |
| 861 | 864 |
| 862 } // namespace content | 865 } // namespace content |
| 863 | 866 |
| 864 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ | 867 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI
DER_H_ |
| OLD | NEW |