| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 MOCK_METHOD0(RejectPairing, void()); | 54 MOCK_METHOD0(RejectPairing, void()); |
| 55 MOCK_METHOD0(CancelPairing, void()); | 55 MOCK_METHOD0(CancelPairing, void()); |
| 56 MOCK_METHOD2(Disconnect, | 56 MOCK_METHOD2(Disconnect, |
| 57 void(const base::Closure& callback, | 57 void(const base::Closure& callback, |
| 58 const BluetoothDevice::ErrorCallback& error_callback)); | 58 const BluetoothDevice::ErrorCallback& error_callback)); |
| 59 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); | 59 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); |
| 60 MOCK_METHOD2(ConnectToService, | 60 MOCK_METHOD2(ConnectToService, |
| 61 void(const std::string&, | 61 void(const std::string&, |
| 62 const BluetoothDevice::SocketCallback&)); | 62 const BluetoothDevice::SocketCallback&)); |
| 63 MOCK_METHOD3(ConnectToProfile, | 63 MOCK_METHOD3(ConnectToProfile, |
| 64 void(BluetoothProfile*, | 64 void(BluetoothProfile* profile, |
| 65 const base::Closure&, | 65 const base::Closure& callback, |
| 66 const BluetoothDevice::ErrorCallback&)); | 66 const ConnectToProfileErrorCallback& error_callback)); |
| 67 | 67 |
| 68 MOCK_METHOD3(SetOutOfBandPairingData, | 68 MOCK_METHOD3(SetOutOfBandPairingData, |
| 69 void(const BluetoothOutOfBandPairingData& data, | 69 void(const BluetoothOutOfBandPairingData& data, |
| 70 const base::Closure& callback, | 70 const base::Closure& callback, |
| 71 const BluetoothDevice::ErrorCallback& error_callback)); | 71 const BluetoothDevice::ErrorCallback& error_callback)); |
| 72 MOCK_METHOD2(ClearOutOfBandPairingData, | 72 MOCK_METHOD2(ClearOutOfBandPairingData, |
| 73 void(const base::Closure& callback, | 73 void(const base::Closure& callback, |
| 74 const BluetoothDevice::ErrorCallback& error_callback)); | 74 const BluetoothDevice::ErrorCallback& error_callback)); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 uint32 bluetooth_class_; | 77 uint32 bluetooth_class_; |
| 78 std::string name_; | 78 std::string name_; |
| 79 std::string address_; | 79 std::string address_; |
| 80 BluetoothDevice::UUIDList uuids_; | 80 BluetoothDevice::UUIDList uuids_; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace device | 83 } // namespace device |
| 84 | 84 |
| 85 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 85 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |