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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 MOCK_CONST_METHOD0(GetDeviceID, uint16_t()); | 42 MOCK_CONST_METHOD0(GetDeviceID, uint16_t()); |
43 MOCK_CONST_METHOD0(GetName, base::string16()); | 43 MOCK_CONST_METHOD0(GetName, base::string16()); |
44 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); | 44 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); |
45 MOCK_CONST_METHOD0(GetAppearance, uint16_t()); | 45 MOCK_CONST_METHOD0(GetAppearance, uint16_t()); |
46 MOCK_CONST_METHOD0(IsPaired, bool()); | 46 MOCK_CONST_METHOD0(IsPaired, bool()); |
47 MOCK_CONST_METHOD0(IsConnected, bool()); | 47 MOCK_CONST_METHOD0(IsConnected, bool()); |
48 MOCK_CONST_METHOD0(IsGattConnected, bool()); | 48 MOCK_CONST_METHOD0(IsGattConnected, bool()); |
49 MOCK_CONST_METHOD0(IsConnectable, bool()); | 49 MOCK_CONST_METHOD0(IsConnectable, bool()); |
50 MOCK_CONST_METHOD0(IsConnecting, bool()); | 50 MOCK_CONST_METHOD0(IsConnecting, bool()); |
51 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); | 51 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); |
52 MOCK_CONST_METHOD0(GetInquiryRSSI, int16_t()); | 52 MOCK_CONST_METHOD0(GetInquiryRSSI, base::Optional<int8_t>()); |
53 MOCK_CONST_METHOD0(GetInquiryTxPower, int16_t()); | 53 MOCK_CONST_METHOD0(GetInquiryTxPower, base::Optional<int8_t>()); |
54 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); | 54 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); |
55 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); | 55 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); |
56 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); | 56 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); |
57 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); | 57 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); |
58 MOCK_METHOD3(Connect, | 58 MOCK_METHOD3(Connect, |
59 void(BluetoothDevice::PairingDelegate* pairing_delegate, | 59 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
60 const base::Closure& callback, | 60 const base::Closure& callback, |
61 const BluetoothDevice::ConnectErrorCallback& | 61 const BluetoothDevice::ConnectErrorCallback& |
62 error_callback)); | 62 error_callback)); |
63 MOCK_METHOD3( | 63 MOCK_METHOD3( |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 std::string name_; | 116 std::string name_; |
117 std::string address_; | 117 std::string address_; |
118 BluetoothDevice::UUIDList uuids_; | 118 BluetoothDevice::UUIDList uuids_; |
119 | 119 |
120 ScopedVector<MockBluetoothGattService> mock_services_; | 120 ScopedVector<MockBluetoothGattService> mock_services_; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace device | 123 } // namespace device |
124 | 124 |
125 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 125 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
OLD | NEW |