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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 MOCK_CONST_METHOD0(GetProductID, uint16()); | 34 MOCK_CONST_METHOD0(GetProductID, uint16()); |
35 MOCK_CONST_METHOD0(GetDeviceID, uint16()); | 35 MOCK_CONST_METHOD0(GetDeviceID, uint16()); |
36 MOCK_CONST_METHOD0(GetName, base::string16()); | 36 MOCK_CONST_METHOD0(GetName, base::string16()); |
37 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); | 37 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); |
38 MOCK_CONST_METHOD0(IsPaired, bool()); | 38 MOCK_CONST_METHOD0(IsPaired, bool()); |
39 MOCK_CONST_METHOD0(IsConnected, bool()); | 39 MOCK_CONST_METHOD0(IsConnected, bool()); |
40 MOCK_CONST_METHOD0(IsConnectable, bool()); | 40 MOCK_CONST_METHOD0(IsConnectable, bool()); |
41 MOCK_CONST_METHOD0(IsConnecting, bool()); | 41 MOCK_CONST_METHOD0(IsConnecting, bool()); |
42 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); | 42 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); |
43 MOCK_CONST_METHOD0(GetInquiryRSSI, int16()); | 43 MOCK_CONST_METHOD0(GetInquiryRSSI, int16()); |
| 44 MOCK_CONST_METHOD0(GetInquiryTxPower, int16()); |
44 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); | 45 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); |
45 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); | 46 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); |
46 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); | 47 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); |
47 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); | 48 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); |
48 MOCK_METHOD3(Connect, | 49 MOCK_METHOD3(Connect, |
49 void(BluetoothDevice::PairingDelegate* pairing_delegate, | 50 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
50 const base::Closure& callback, | 51 const base::Closure& callback, |
51 const BluetoothDevice::ConnectErrorCallback& | 52 const BluetoothDevice::ConnectErrorCallback& |
52 error_callback)); | 53 error_callback)); |
53 MOCK_METHOD1(SetPinCode, void(const std::string&)); | 54 MOCK_METHOD1(SetPinCode, void(const std::string&)); |
(...skipping 27 matching lines...) Expand all Loading... |
81 private: | 82 private: |
82 uint32 bluetooth_class_; | 83 uint32 bluetooth_class_; |
83 std::string name_; | 84 std::string name_; |
84 std::string address_; | 85 std::string address_; |
85 BluetoothDevice::UUIDList uuids_; | 86 BluetoothDevice::UUIDList uuids_; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace device | 89 } // namespace device |
89 | 90 |
90 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 91 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
OLD | NEW |