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

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 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 #if defined(OS_CHROMEOS) || defined(OS_LINUX) 144 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
145 void FakeCentral::SetAdvertisingInterval( 145 void FakeCentral::SetAdvertisingInterval(
146 const base::TimeDelta& min, 146 const base::TimeDelta& min,
147 const base::TimeDelta& max, 147 const base::TimeDelta& max,
148 const base::Closure& callback, 148 const base::Closure& callback,
149 const AdvertisementErrorCallback& error_callback) { 149 const AdvertisementErrorCallback& error_callback) {
150 NOTREACHED(); 150 NOTREACHED();
151 } 151 }
152 void FakeCentral::ResetAdvertising(
153 const base::Closure& callback,
154 const AdvertisementErrorCallback& error_callback) {
155 NOTREACHED();
156 }
152 #endif 157 #endif
153 158
154 device::BluetoothLocalGattService* FakeCentral::GetGattService( 159 device::BluetoothLocalGattService* FakeCentral::GetGattService(
155 const std::string& identifier) const { 160 const std::string& identifier) const {
156 NOTREACHED(); 161 NOTREACHED();
157 return nullptr; 162 return nullptr;
158 } 163 }
159 164
160 void FakeCentral::AddDiscoverySession( 165 void FakeCentral::AddDiscoverySession(
161 device::BluetoothDiscoveryFilter* discovery_filter, 166 device::BluetoothDiscoveryFilter* discovery_filter,
(...skipping 17 matching lines...) Expand all
179 } 184 }
180 185
181 void FakeCentral::RemovePairingDelegateInternal( 186 void FakeCentral::RemovePairingDelegateInternal(
182 device::BluetoothDevice::PairingDelegate* pairing_delegate) { 187 device::BluetoothDevice::PairingDelegate* pairing_delegate) {
183 NOTREACHED(); 188 NOTREACHED();
184 } 189 }
185 190
186 FakeCentral::~FakeCentral() {} 191 FakeCentral::~FakeCentral() {}
187 192
188 } // namespace bluetooth 193 } // namespace bluetooth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698