| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, BluetoothDevice::DeviceType()); |
| 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, UUIDList()); | 54 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); |
| 55 MOCK_CONST_METHOD0(GetInquiryRSSI, int16_t()); | 55 MOCK_CONST_METHOD0(GetInquiryRSSI, base::Optional<int8_t>()); |
| 56 MOCK_CONST_METHOD0(GetInquiryTxPower, int16_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()); |
| 59 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); | 59 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); |
| 60 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); | 60 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); |
| 61 MOCK_METHOD3(Connect, | 61 MOCK_METHOD3(Connect, |
| 62 void(BluetoothDevice::PairingDelegate* pairing_delegate, | 62 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
| 63 const base::Closure& callback, | 63 const base::Closure& callback, |
| 64 const BluetoothDevice::ConnectErrorCallback& | 64 const BluetoothDevice::ConnectErrorCallback& |
| 65 error_callback)); | 65 error_callback)); |
| 66 MOCK_METHOD3( | 66 MOCK_METHOD3( |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 std::string address_; | 122 std::string address_; |
| 123 BluetoothDevice::UUIDList uuids_; | 123 BluetoothDevice::UUIDList uuids_; |
| 124 bool connected_; | 124 bool connected_; |
| 125 | 125 |
| 126 ScopedVector<MockBluetoothGattService> mock_services_; | 126 ScopedVector<MockBluetoothGattService> mock_services_; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace device | 129 } // namespace device |
| 130 | 130 |
| 131 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 131 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |