| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 MOCK_CONST_METHOD0(GetType, BluetoothTransport()); | 38 MOCK_CONST_METHOD0(GetType, BluetoothTransport()); |
| 39 MOCK_CONST_METHOD0(GetIdentifier, std::string()); | 39 MOCK_CONST_METHOD0(GetIdentifier, std::string()); |
| 40 MOCK_CONST_METHOD0(GetAddress, std::string()); | 40 MOCK_CONST_METHOD0(GetAddress, std::string()); |
| 41 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource()); | 41 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource()); |
| 42 MOCK_CONST_METHOD0(GetVendorID, uint16_t()); | 42 MOCK_CONST_METHOD0(GetVendorID, uint16_t()); |
| 43 MOCK_CONST_METHOD0(GetProductID, uint16_t()); | 43 MOCK_CONST_METHOD0(GetProductID, uint16_t()); |
| 44 MOCK_CONST_METHOD0(GetDeviceID, uint16_t()); | 44 MOCK_CONST_METHOD0(GetDeviceID, uint16_t()); |
| 45 MOCK_CONST_METHOD0(GetAppearance, uint16_t()); | 45 MOCK_CONST_METHOD0(GetAppearance, uint16_t()); |
| 46 MOCK_CONST_METHOD0(GetName, base::Optional<std::string>()); | 46 MOCK_CONST_METHOD0(GetName, base::Optional<std::string>()); |
| 47 MOCK_CONST_METHOD0(GetNameForDisplay, base::string16()); | 47 MOCK_CONST_METHOD0(GetNameForDisplay, base::string16()); |
| 48 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); | 48 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDeviceType()); |
| 49 MOCK_CONST_METHOD0(IsPaired, bool()); | 49 MOCK_CONST_METHOD0(IsPaired, bool()); |
| 50 MOCK_CONST_METHOD0(IsConnected, bool()); | 50 MOCK_CONST_METHOD0(IsConnected, bool()); |
| 51 MOCK_CONST_METHOD0(IsGattConnected, bool()); | 51 MOCK_CONST_METHOD0(IsGattConnected, bool()); |
| 52 MOCK_CONST_METHOD0(IsConnectable, bool()); | 52 MOCK_CONST_METHOD0(IsConnectable, bool()); |
| 53 MOCK_CONST_METHOD0(IsConnecting, bool()); | 53 MOCK_CONST_METHOD0(IsConnecting, bool()); |
| 54 MOCK_CONST_METHOD0(GetUUIDs, UUIDSet()); | 54 MOCK_CONST_METHOD0(GetUUIDs, UUIDSet()); |
| 55 MOCK_CONST_METHOD0(GetInquiryRSSI, base::Optional<int8_t>()); | 55 MOCK_CONST_METHOD0(GetInquiryRSSI, base::Optional<int8_t>()); |
| 56 MOCK_CONST_METHOD0(GetInquiryTxPower, base::Optional<int8_t>()); | 56 MOCK_CONST_METHOD0(GetInquiryTxPower, base::Optional<int8_t>()); |
| 57 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); | 57 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); |
| 58 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); | 58 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 std::string address_; | 124 std::string address_; |
| 125 BluetoothDevice::UUIDSet uuids_; | 125 BluetoothDevice::UUIDSet uuids_; |
| 126 bool connected_; | 126 bool connected_; |
| 127 | 127 |
| 128 ScopedVector<MockBluetoothGattService> mock_services_; | 128 ScopedVector<MockBluetoothGattService> mock_services_; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace device | 131 } // namespace device |
| 132 | 132 |
| 133 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 133 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |