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/string16.h" | 10 #include "base/string16.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 void(const BluetoothDevice::ServiceRecordsCallback&, | 40 void(const BluetoothDevice::ServiceRecordsCallback&, |
41 const BluetoothDevice::ErrorCallback&)); | 41 const BluetoothDevice::ErrorCallback&)); |
42 MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&)); | 42 MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&)); |
43 MOCK_METHOD2(ProvidesServiceWithName, | 43 MOCK_METHOD2(ProvidesServiceWithName, |
44 void(const std::string&, | 44 void(const std::string&, |
45 const BluetoothDevice::ProvidesServiceCallback&)); | 45 const BluetoothDevice::ProvidesServiceCallback&)); |
46 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); | 46 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); |
47 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); | 47 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); |
48 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); | 48 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); |
49 MOCK_METHOD3(Connect, | 49 MOCK_METHOD3(Connect, |
50 void(BluetoothDevice::PairingDelegate* pairnig_delegate, | 50 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
51 const base::Closure& callback, | 51 const base::Closure& callback, |
52 const BluetoothDevice::ConnectErrorCallback& | 52 const BluetoothDevice::ConnectErrorCallback& |
53 error_callback)); | 53 error_callback)); |
54 MOCK_METHOD1(SetPinCode, void(const std::string&)); | 54 MOCK_METHOD1(SetPinCode, void(const std::string&)); |
55 MOCK_METHOD1(SetPasskey, void(uint32)); | 55 MOCK_METHOD1(SetPasskey, void(uint32)); |
56 MOCK_METHOD0(ConfirmPairing, void()); | 56 MOCK_METHOD0(ConfirmPairing, void()); |
57 MOCK_METHOD0(RejectPairing, void()); | 57 MOCK_METHOD0(RejectPairing, void()); |
58 MOCK_METHOD0(CancelPairing, void()); | 58 MOCK_METHOD0(CancelPairing, void()); |
59 MOCK_METHOD2(Disconnect, | 59 MOCK_METHOD2(Disconnect, |
60 void(const base::Closure& callback, | 60 void(const base::Closure& callback, |
61 const BluetoothDevice::ErrorCallback& error_callback)); | 61 const BluetoothDevice::ErrorCallback& error_callback)); |
62 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); | 62 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); |
63 MOCK_METHOD2(ConnectToService, | 63 MOCK_METHOD2(ConnectToService, |
64 void(const std::string&, | 64 void(const std::string&, |
65 const BluetoothDevice::SocketCallback&)); | 65 const BluetoothDevice::SocketCallback&)); |
| 66 MOCK_METHOD2(ConnectToProfile, |
| 67 void(BluetoothProfile*, |
| 68 const BluetoothDevice::ErrorCallback&)); |
66 | 69 |
67 MOCK_METHOD3(SetOutOfBandPairingData, | 70 MOCK_METHOD3(SetOutOfBandPairingData, |
68 void(const BluetoothOutOfBandPairingData& data, | 71 void(const BluetoothOutOfBandPairingData& data, |
69 const base::Closure& callback, | 72 const base::Closure& callback, |
70 const BluetoothDevice::ErrorCallback& error_callback)); | 73 const BluetoothDevice::ErrorCallback& error_callback)); |
71 MOCK_METHOD2(ClearOutOfBandPairingData, | 74 MOCK_METHOD2(ClearOutOfBandPairingData, |
72 void(const base::Closure& callback, | 75 void(const base::Closure& callback, |
73 const BluetoothDevice::ErrorCallback& error_callback)); | 76 const BluetoothDevice::ErrorCallback& error_callback)); |
74 | 77 |
75 private: | 78 private: |
76 uint32 bluetooth_class_; | 79 uint32 bluetooth_class_; |
77 std::string name_; | 80 std::string name_; |
78 std::string address_; | 81 std::string address_; |
79 BluetoothDevice::ServiceList service_list_; | 82 BluetoothDevice::ServiceList service_list_; |
80 }; | 83 }; |
81 | 84 |
82 } // namespace device | 85 } // namespace device |
83 | 86 |
84 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 87 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
OLD | NEW |