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

Side by Side Diff: device/bluetooth/test/fake_central.cc

Issue 2861533004: Implement chrome.bluetoothLowEnergy.resetAdvertising(). (Closed)
Patch Set: Implement chrome.bluetoothLowEnergy.resetAllAdvertisements(). Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "device/bluetooth/test/fake_central.h" 5 #include "device/bluetooth/test/fake_central.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 #if defined(OS_CHROMEOS) || defined(OS_LINUX) 189 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
190 void FakeCentral::SetAdvertisingInterval( 190 void FakeCentral::SetAdvertisingInterval(
191 const base::TimeDelta& min, 191 const base::TimeDelta& min,
192 const base::TimeDelta& max, 192 const base::TimeDelta& max,
193 const base::Closure& callback, 193 const base::Closure& callback,
194 const AdvertisementErrorCallback& error_callback) { 194 const AdvertisementErrorCallback& error_callback) {
195 NOTREACHED(); 195 NOTREACHED();
196 } 196 }
197 void FakeCentral::ResetAdvertising(
198 const base::Closure& callback,
199 const AdvertisementErrorCallback& error_callback) {
200 NOTREACHED();
201 }
197 #endif 202 #endif
198 203
199 device::BluetoothLocalGattService* FakeCentral::GetGattService( 204 device::BluetoothLocalGattService* FakeCentral::GetGattService(
200 const std::string& identifier) const { 205 const std::string& identifier) const {
201 NOTREACHED(); 206 NOTREACHED();
202 return nullptr; 207 return nullptr;
203 } 208 }
204 209
205 void FakeCentral::AddDiscoverySession( 210 void FakeCentral::AddDiscoverySession(
206 device::BluetoothDiscoveryFilter* discovery_filter, 211 device::BluetoothDiscoveryFilter* discovery_filter,
(...skipping 17 matching lines...) Expand all
224 } 229 }
225 230
226 void FakeCentral::RemovePairingDelegateInternal( 231 void FakeCentral::RemovePairingDelegateInternal(
227 device::BluetoothDevice::PairingDelegate* pairing_delegate) { 232 device::BluetoothDevice::PairingDelegate* pairing_delegate) {
228 NOTREACHED(); 233 NOTREACHED();
229 } 234 }
230 235
231 FakeCentral::~FakeCentral() {} 236 FakeCentral::~FakeCentral() {}
232 237
233 } // namespace bluetooth 238 } // namespace bluetooth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698