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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #endif | 43 #endif |
44 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*)); | 44 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*)); |
45 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*)); | 45 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*)); |
46 MOCK_CONST_METHOD0(GetAddress, std::string()); | 46 MOCK_CONST_METHOD0(GetAddress, std::string()); |
47 MOCK_CONST_METHOD0(GetName, std::string()); | 47 MOCK_CONST_METHOD0(GetName, std::string()); |
48 MOCK_METHOD3(SetName, | 48 MOCK_METHOD3(SetName, |
49 void(const std::string& name, | 49 void(const std::string& name, |
50 const base::Closure& callback, | 50 const base::Closure& callback, |
51 const ErrorCallback& error_callback)); | 51 const ErrorCallback& error_callback)); |
52 MOCK_CONST_METHOD0(IsPresent, bool()); | 52 MOCK_CONST_METHOD0(IsPresent, bool()); |
| 53 MOCK_METHOD1(SetDisabled, void(bool)); |
53 MOCK_CONST_METHOD0(IsPowered, bool()); | 54 MOCK_CONST_METHOD0(IsPowered, bool()); |
54 MOCK_METHOD3(SetPowered, | 55 MOCK_METHOD3(SetPowered, |
55 void(bool powered, | 56 void(bool powered, |
56 const base::Closure& callback, | 57 const base::Closure& callback, |
57 const ErrorCallback& error_callback)); | 58 const ErrorCallback& error_callback)); |
58 MOCK_CONST_METHOD0(IsDiscoverable, bool()); | 59 MOCK_CONST_METHOD0(IsDiscoverable, bool()); |
59 MOCK_METHOD3(SetDiscoverable, | 60 MOCK_METHOD3(SetDiscoverable, |
60 void(bool discoverable, | 61 void(bool discoverable, |
61 const base::Closure& callback, | 62 const base::Closure& callback, |
62 const ErrorCallback& error_callback)); | 63 const ErrorCallback& error_callback)); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 139 |
139 MOCK_METHOD1(RemovePairingDelegateInternal, | 140 MOCK_METHOD1(RemovePairingDelegateInternal, |
140 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 141 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
141 | 142 |
142 ScopedVector<MockBluetoothDevice> mock_devices_; | 143 ScopedVector<MockBluetoothDevice> mock_devices_; |
143 }; | 144 }; |
144 | 145 |
145 } // namespace device | 146 } // namespace device |
146 | 147 |
147 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 148 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |