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_ADAPTER_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const base::Closure& callback, | 53 const base::Closure& callback, |
54 const ErrorCallback& error_callback)); | 54 const ErrorCallback& error_callback)); |
55 MOCK_CONST_METHOD0(IsDiscovering, bool()); | 55 MOCK_CONST_METHOD0(IsDiscovering, bool()); |
56 MOCK_METHOD2(StartDiscoverySession, | 56 MOCK_METHOD2(StartDiscoverySession, |
57 void(const DiscoverySessionCallback& callback, | 57 void(const DiscoverySessionCallback& callback, |
58 const ErrorCallback& error_callback)); | 58 const ErrorCallback& error_callback)); |
59 MOCK_CONST_METHOD0(GetDevices, BluetoothAdapter::ConstDeviceList()); | 59 MOCK_CONST_METHOD0(GetDevices, BluetoothAdapter::ConstDeviceList()); |
60 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address)); | 60 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address)); |
61 MOCK_CONST_METHOD1(GetDevice, | 61 MOCK_CONST_METHOD1(GetDevice, |
62 const BluetoothDevice*(const std::string& address)); | 62 const BluetoothDevice*(const std::string& address)); |
63 MOCK_METHOD2( | |
64 ReadLocalOutOfBandPairingData, | |
65 void(const BluetoothOutOfBandPairingDataCallback& callback, | |
66 const ErrorCallback& error_callback)); | |
67 MOCK_METHOD2(AddPairingDelegate, | 63 MOCK_METHOD2(AddPairingDelegate, |
68 void(BluetoothDevice::PairingDelegate* pairing_delegate, | 64 void(BluetoothDevice::PairingDelegate* pairing_delegate, |
69 enum PairingDelegatePriority priority)); | 65 enum PairingDelegatePriority priority)); |
70 MOCK_METHOD1(RemovePairingDelegate, | 66 MOCK_METHOD1(RemovePairingDelegate, |
71 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 67 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
72 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*()); | 68 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*()); |
73 MOCK_METHOD5(CreateRfcommService, | 69 MOCK_METHOD5(CreateRfcommService, |
74 void(const BluetoothUUID& uuid, | 70 void(const BluetoothUUID& uuid, |
75 int channel, | 71 int channel, |
76 bool insecure, | 72 bool insecure, |
(...skipping 12 matching lines...) Expand all Loading... |
89 const ErrorCallback& error_callback); | 85 const ErrorCallback& error_callback); |
90 virtual ~MockBluetoothAdapter(); | 86 virtual ~MockBluetoothAdapter(); |
91 | 87 |
92 MOCK_METHOD1(RemovePairingDelegateInternal, | 88 MOCK_METHOD1(RemovePairingDelegateInternal, |
93 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 89 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
94 }; | 90 }; |
95 | 91 |
96 } // namespace device | 92 } // namespace device |
97 | 93 |
98 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 94 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |