| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 MOCK_CONST_METHOD0(IsPowered, bool()); | 54 MOCK_CONST_METHOD0(IsPowered, bool()); |
| 55 MOCK_METHOD3(SetPowered, | 55 MOCK_METHOD3(SetPowered, |
| 56 void(bool powered, | 56 void(bool powered, |
| 57 const base::Closure& callback, | 57 const base::Closure& callback, |
| 58 const ErrorCallback& error_callback)); | 58 const ErrorCallback& error_callback)); |
| 59 MOCK_CONST_METHOD0(IsDiscoverable, bool()); | 59 MOCK_CONST_METHOD0(IsDiscoverable, bool()); |
| 60 MOCK_METHOD3(SetDiscoverable, | 60 MOCK_METHOD3(SetDiscoverable, |
| 61 void(bool discoverable, | 61 void(bool discoverable, |
| 62 const base::Closure& callback, | 62 const base::Closure& callback, |
| 63 const ErrorCallback& error_callback)); | 63 const ErrorCallback& error_callback)); |
| 64 MOCK_CONST_METHOD0(GetDiscoverableTimeout, uint32_t()); |
| 64 MOCK_CONST_METHOD0(IsDiscovering, bool()); | 65 MOCK_CONST_METHOD0(IsDiscovering, bool()); |
| 65 MOCK_METHOD2(StartDiscoverySession, | 66 MOCK_METHOD2(StartDiscoverySession, |
| 66 void(const DiscoverySessionCallback& callback, | 67 void(const DiscoverySessionCallback& callback, |
| 67 const ErrorCallback& error_callback)); | 68 const ErrorCallback& error_callback)); |
| 68 MOCK_METHOD3(StartDiscoverySessionWithFilterRaw, | 69 MOCK_METHOD3(StartDiscoverySessionWithFilterRaw, |
| 69 void(const BluetoothDiscoveryFilter*, | 70 void(const BluetoothDiscoveryFilter*, |
| 70 const DiscoverySessionCallback& callback, | 71 const DiscoverySessionCallback& callback, |
| 71 const ErrorCallback& error_callback)); | 72 const ErrorCallback& error_callback)); |
| 72 MOCK_METHOD3(SetDiscoveryFilterRaw, | 73 MOCK_METHOD3(SetDiscoveryFilterRaw, |
| 73 void(const BluetoothDiscoveryFilter*, | 74 void(const BluetoothDiscoveryFilter*, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 143 |
| 143 MOCK_METHOD1(RemovePairingDelegateInternal, | 144 MOCK_METHOD1(RemovePairingDelegateInternal, |
| 144 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 145 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
| 145 | 146 |
| 146 ScopedVector<MockBluetoothDevice> mock_devices_; | 147 ScopedVector<MockBluetoothDevice> mock_devices_; |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace device | 150 } // namespace device |
| 150 | 151 |
| 151 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 152 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |