| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const ServiceOptions& options, | 71 const ServiceOptions& options, |
| 72 const CreateServiceCallback& callback, | 72 const CreateServiceCallback& callback, |
| 73 const CreateServiceErrorCallback& error_callback)); | 73 const CreateServiceErrorCallback& error_callback)); |
| 74 MOCK_METHOD4(CreateL2capService, | 74 MOCK_METHOD4(CreateL2capService, |
| 75 void(const BluetoothUUID& uuid, | 75 void(const BluetoothUUID& uuid, |
| 76 const ServiceOptions& options, | 76 const ServiceOptions& options, |
| 77 const CreateServiceCallback& callback, | 77 const CreateServiceCallback& callback, |
| 78 const CreateServiceErrorCallback& error_callback)); | 78 const CreateServiceErrorCallback& error_callback)); |
| 79 | 79 |
| 80 protected: | 80 protected: |
| 81 void DeleteOnCorrectThread() const override; |
| 81 virtual void AddDiscoverySession(const base::Closure& callback, | 82 virtual void AddDiscoverySession(const base::Closure& callback, |
| 82 const ErrorCallback& error_callback); | 83 const ErrorCallback& error_callback); |
| 83 virtual void RemoveDiscoverySession(const base::Closure& callback, | 84 virtual void RemoveDiscoverySession(const base::Closure& callback, |
| 84 const ErrorCallback& error_callback); | 85 const ErrorCallback& error_callback); |
| 85 virtual ~MockBluetoothAdapter(); | 86 virtual ~MockBluetoothAdapter(); |
| 86 | 87 |
| 87 MOCK_METHOD1(RemovePairingDelegateInternal, | 88 MOCK_METHOD1(RemovePairingDelegateInternal, |
| 88 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 89 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace device | 92 } // namespace device |
| 92 | 93 |
| 93 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 94 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |