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