| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); | 29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); |
| 30 MOCK_CONST_METHOD0(GetDeviceName, std::string()); | 30 MOCK_CONST_METHOD0(GetDeviceName, std::string()); |
| 31 MOCK_CONST_METHOD0(GetAddress, std::string()); | 31 MOCK_CONST_METHOD0(GetAddress, std::string()); |
| 32 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource()); | 32 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource()); |
| 33 MOCK_CONST_METHOD0(GetVendorID, uint16()); | 33 MOCK_CONST_METHOD0(GetVendorID, uint16()); |
| 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(GetRSSI, int()); | |
| 39 MOCK_CONST_METHOD0(GetCurrentHostTransmitPower, int()); | |
| 40 MOCK_CONST_METHOD0(GetMaximumHostTransmitPower, int()); | |
| 41 MOCK_CONST_METHOD0(IsPaired, bool()); | 38 MOCK_CONST_METHOD0(IsPaired, bool()); |
| 42 MOCK_CONST_METHOD0(IsConnected, bool()); | 39 MOCK_CONST_METHOD0(IsConnected, bool()); |
| 43 MOCK_CONST_METHOD0(IsConnectable, bool()); | 40 MOCK_CONST_METHOD0(IsConnectable, bool()); |
| 44 MOCK_CONST_METHOD0(IsConnecting, bool()); | 41 MOCK_CONST_METHOD0(IsConnecting, bool()); |
| 45 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); | 42 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); |
| 46 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); | 43 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); |
| 47 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); | 44 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); |
| 48 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); | 45 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); |
| 46 MOCK_METHOD1(GetConnectionInfo, void(const ConnectionInfoCallback& callback)); |
| 49 MOCK_METHOD3(Connect, | 47 MOCK_METHOD3(Connect, |
| 50 void(BluetoothDevice::PairingDelegate* pairing_delegate, | 48 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
| 51 const base::Closure& callback, | 49 const base::Closure& callback, |
| 52 const BluetoothDevice::ConnectErrorCallback& | 50 const BluetoothDevice::ConnectErrorCallback& |
| 53 error_callback)); | 51 error_callback)); |
| 54 MOCK_METHOD1(SetPinCode, void(const std::string&)); | 52 MOCK_METHOD1(SetPinCode, void(const std::string&)); |
| 55 MOCK_METHOD1(SetPasskey, void(uint32)); | 53 MOCK_METHOD1(SetPasskey, void(uint32)); |
| 56 MOCK_METHOD0(ConfirmPairing, void()); | 54 MOCK_METHOD0(ConfirmPairing, void()); |
| 57 MOCK_METHOD0(RejectPairing, void()); | 55 MOCK_METHOD0(RejectPairing, void()); |
| 58 MOCK_METHOD0(CancelPairing, void()); | 56 MOCK_METHOD0(CancelPairing, void()); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 private: | 80 private: |
| 83 uint32 bluetooth_class_; | 81 uint32 bluetooth_class_; |
| 84 std::string name_; | 82 std::string name_; |
| 85 std::string address_; | 83 std::string address_; |
| 86 BluetoothDevice::UUIDList uuids_; | 84 BluetoothDevice::UUIDList uuids_; |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 } // namespace device | 87 } // namespace device |
| 90 | 88 |
| 91 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 89 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |