| 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 17 matching lines...) Expand all Loading... |
| 28 MOCK_METHOD2(DeviceAdded, void(BluetoothAdapter*, BluetoothDevice*)); | 28 MOCK_METHOD2(DeviceAdded, void(BluetoothAdapter*, BluetoothDevice*)); |
| 29 MOCK_METHOD2(DeviceChanged, void(BluetoothAdapter*, BluetoothDevice*)); | 29 MOCK_METHOD2(DeviceChanged, void(BluetoothAdapter*, BluetoothDevice*)); |
| 30 MOCK_METHOD2(DeviceRemoved, void(BluetoothAdapter*, BluetoothDevice*)); | 30 MOCK_METHOD2(DeviceRemoved, void(BluetoothAdapter*, BluetoothDevice*)); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 MockBluetoothAdapter(); | 33 MockBluetoothAdapter(); |
| 34 | 34 |
| 35 virtual bool IsInitialized() const { return true; } | 35 virtual bool IsInitialized() const { return true; } |
| 36 | 36 |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 void Shutdown(); | 38 void Shutdown() override; |
| 39 #endif | 39 #endif |
| 40 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*)); | 40 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*)); |
| 41 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*)); | 41 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*)); |
| 42 MOCK_CONST_METHOD0(GetAddress, std::string()); | 42 MOCK_CONST_METHOD0(GetAddress, std::string()); |
| 43 MOCK_CONST_METHOD0(GetName, std::string()); | 43 MOCK_CONST_METHOD0(GetName, std::string()); |
| 44 MOCK_METHOD3(SetName, | 44 MOCK_METHOD3(SetName, |
| 45 void(const std::string& name, | 45 void(const std::string& name, |
| 46 const base::Closure& callback, | 46 const base::Closure& callback, |
| 47 const ErrorCallback& error_callback)); | 47 const ErrorCallback& error_callback)); |
| 48 MOCK_CONST_METHOD0(IsPresent, bool()); | 48 MOCK_CONST_METHOD0(IsPresent, bool()); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const ErrorCallback& error_callback); | 93 const ErrorCallback& error_callback); |
| 94 virtual ~MockBluetoothAdapter(); | 94 virtual ~MockBluetoothAdapter(); |
| 95 | 95 |
| 96 MOCK_METHOD1(RemovePairingDelegateInternal, | 96 MOCK_METHOD1(RemovePairingDelegateInternal, |
| 97 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 97 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace device | 100 } // namespace device |
| 101 | 101 |
| 102 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 102 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |