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

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

Issue 2861533004: Implement chrome.bluetoothLowEnergy.resetAdvertising(). (Closed)
Patch Set: Implement chrome.bluetoothLowEnergy.resetAllAdvertisements(). Created 3 years, 5 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 #include <vector> 10 #include <vector>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void RegisterAdvertisement( 134 void RegisterAdvertisement(
135 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 135 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
136 const CreateAdvertisementCallback& callback, 136 const CreateAdvertisementCallback& callback,
137 const AdvertisementErrorCallback& error_callback) override; 137 const AdvertisementErrorCallback& error_callback) override;
138 #if defined(OS_CHROMEOS) || defined(OS_LINUX) 138 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
139 void SetAdvertisingInterval( 139 void SetAdvertisingInterval(
140 const base::TimeDelta& min, 140 const base::TimeDelta& min,
141 const base::TimeDelta& max, 141 const base::TimeDelta& max,
142 const base::Closure& callback, 142 const base::Closure& callback,
143 const AdvertisementErrorCallback& error_callback) override; 143 const AdvertisementErrorCallback& error_callback) override;
144 void ResetAdvertising(
145 const base::Closure& callback,
146 const AdvertisementErrorCallback& error_callback) override;
144 #endif 147 #endif
145 virtual ~MockBluetoothAdapter(); 148 virtual ~MockBluetoothAdapter();
146 149
147 MOCK_METHOD1(RemovePairingDelegateInternal, 150 MOCK_METHOD1(RemovePairingDelegateInternal,
148 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 151 void(BluetoothDevice::PairingDelegate* pairing_delegate));
149 152
150 std::vector<std::unique_ptr<MockBluetoothDevice>> mock_devices_; 153 std::vector<std::unique_ptr<MockBluetoothDevice>> mock_devices_;
151 }; 154 };
152 155
153 } // namespace device 156 } // namespace device
154 157
155 #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