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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const CreateServiceErrorCallback& error_callback)); | 91 const CreateServiceErrorCallback& error_callback)); |
92 MOCK_METHOD4(CreateL2capService, | 92 MOCK_METHOD4(CreateL2capService, |
93 void(const BluetoothUUID& uuid, | 93 void(const BluetoothUUID& uuid, |
94 const ServiceOptions& options, | 94 const ServiceOptions& options, |
95 const CreateServiceCallback& callback, | 95 const CreateServiceCallback& callback, |
96 const CreateServiceErrorCallback& error_callback)); | 96 const CreateServiceErrorCallback& error_callback)); |
97 MOCK_METHOD3(RegisterAudioSink, | 97 MOCK_METHOD3(RegisterAudioSink, |
98 void(const BluetoothAudioSink::Options& options, | 98 void(const BluetoothAudioSink::Options& options, |
99 const AcquiredCallback& callback, | 99 const AcquiredCallback& callback, |
100 const BluetoothAudioSink::ErrorCallback& error_callback)); | 100 const BluetoothAudioSink::ErrorCallback& error_callback)); |
| 101 MOCK_CONST_METHOD1(GetGattService, |
| 102 BluetoothLocalGattService*(const std::string& identifier)); |
101 | 103 |
102 void StartDiscoverySessionWithFilter( | 104 void StartDiscoverySessionWithFilter( |
103 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, | 105 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, |
104 const DiscoverySessionCallback& callback, | 106 const DiscoverySessionCallback& callback, |
105 const ErrorCallback& error_callback); | 107 const ErrorCallback& error_callback); |
106 | 108 |
107 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices. | 109 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices. |
108 // This method takes ownership of the MockBluetoothDevice. This is only for | 110 // This method takes ownership of the MockBluetoothDevice. This is only for |
109 // convenience as far testing is concerned and it's possible to write test | 111 // convenience as far testing is concerned and it's possible to write test |
110 // cases without using these functions. | 112 // cases without using these functions. |
(...skipping 29 matching lines...) Expand all Loading... |
140 | 142 |
141 MOCK_METHOD1(RemovePairingDelegateInternal, | 143 MOCK_METHOD1(RemovePairingDelegateInternal, |
142 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 144 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
143 | 145 |
144 ScopedVector<MockBluetoothDevice> mock_devices_; | 146 ScopedVector<MockBluetoothDevice> mock_devices_; |
145 }; | 147 }; |
146 | 148 |
147 } // namespace device | 149 } // namespace device |
148 | 150 |
149 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 151 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |