Chromium Code Reviews| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 BluetoothDiscoveryFilter* discovery_filter, | 130 BluetoothDiscoveryFilter* discovery_filter, |
| 131 const base::Closure& callback, | 131 const base::Closure& callback, |
| 132 const DiscoverySessionErrorCallback& error_callback) override; | 132 const DiscoverySessionErrorCallback& error_callback) override; |
| 133 void SetDiscoveryFilter( | 133 void SetDiscoveryFilter( |
| 134 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, | 134 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, |
| 135 const base::Closure& callback, | 135 const base::Closure& callback, |
| 136 const DiscoverySessionErrorCallback& error_callback) override; | 136 const DiscoverySessionErrorCallback& error_callback) override; |
| 137 void RegisterAdvertisement( | 137 void RegisterAdvertisement( |
| 138 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 138 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 139 const CreateAdvertisementCallback& callback, | 139 const CreateAdvertisementCallback& callback, |
| 140 const CreateAdvertisementErrorCallback& error_callback) override; | 140 const AdvertisementErrorCallback& error_callback) override; |
| 141 void SetAdvertisingInterval( | |
|
xiyuan
2016/09/21 16:35:23
Should it be put under
#if defined(OS_CHROMEOS)
Rahul Chaturvedi
2016/09/21 18:54:12
Yep :)
Done.
| |
| 142 const base::TimeDelta& min, | |
| 143 const base::TimeDelta& max, | |
| 144 const base::Closure& callback, | |
| 145 const AdvertisementErrorCallback& error_callback) override; | |
| 141 virtual ~MockBluetoothAdapter(); | 146 virtual ~MockBluetoothAdapter(); |
| 142 | 147 |
| 143 MOCK_METHOD1(RemovePairingDelegateInternal, | 148 MOCK_METHOD1(RemovePairingDelegateInternal, |
| 144 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 149 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
| 145 | 150 |
| 146 ScopedVector<MockBluetoothDevice> mock_devices_; | 151 ScopedVector<MockBluetoothDevice> mock_devices_; |
| 147 }; | 152 }; |
| 148 | 153 |
| 149 } // namespace device | 154 } // namespace device |
| 150 | 155 |
| 151 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 156 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |