Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: device/bluetooth/test/mock_bluetooth_adapter.h

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
142 void SetAdvertisingInterval(
143 const base::TimeDelta& min,
144 const base::TimeDelta& max,
145 const base::Closure& callback,
146 const AdvertisementErrorCallback& error_callback) override;
147 #endif
141 virtual ~MockBluetoothAdapter(); 148 virtual ~MockBluetoothAdapter();
142 149
143 MOCK_METHOD1(RemovePairingDelegateInternal, 150 MOCK_METHOD1(RemovePairingDelegateInternal,
144 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 151 void(BluetoothDevice::PairingDelegate* pairing_delegate));
145 152
146 ScopedVector<MockBluetoothDevice> mock_devices_; 153 ScopedVector<MockBluetoothDevice> mock_devices_;
147 }; 154 };
148 155
149 } // namespace device 156 } // namespace device
150 157
151 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 158 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698