OLD | NEW |
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 } | 297 } |
298 | 298 |
299 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 299 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
300 void FakeCentral::SetAdvertisingInterval( | 300 void FakeCentral::SetAdvertisingInterval( |
301 const base::TimeDelta& min, | 301 const base::TimeDelta& min, |
302 const base::TimeDelta& max, | 302 const base::TimeDelta& max, |
303 const base::Closure& callback, | 303 const base::Closure& callback, |
304 const AdvertisementErrorCallback& error_callback) { | 304 const AdvertisementErrorCallback& error_callback) { |
305 NOTREACHED(); | 305 NOTREACHED(); |
306 } | 306 } |
| 307 void FakeCentral::ResetAdvertising( |
| 308 const base::Closure& callback, |
| 309 const AdvertisementErrorCallback& error_callback) { |
| 310 NOTREACHED(); |
| 311 } |
307 #endif | 312 #endif |
308 | 313 |
309 device::BluetoothLocalGattService* FakeCentral::GetGattService( | 314 device::BluetoothLocalGattService* FakeCentral::GetGattService( |
310 const std::string& identifier) const { | 315 const std::string& identifier) const { |
311 NOTREACHED(); | 316 NOTREACHED(); |
312 return nullptr; | 317 return nullptr; |
313 } | 318 } |
314 | 319 |
315 void FakeCentral::AddDiscoverySession( | 320 void FakeCentral::AddDiscoverySession( |
316 device::BluetoothDiscoveryFilter* discovery_filter, | 321 device::BluetoothDiscoveryFilter* discovery_filter, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 characteristic_id); | 375 characteristic_id); |
371 if (fake_remote_gatt_characteristic == nullptr) { | 376 if (fake_remote_gatt_characteristic == nullptr) { |
372 return nullptr; | 377 return nullptr; |
373 } | 378 } |
374 | 379 |
375 return static_cast<FakeRemoteGattDescriptor*>( | 380 return static_cast<FakeRemoteGattDescriptor*>( |
376 fake_remote_gatt_characteristic->GetDescriptor(descriptor_id)); | 381 fake_remote_gatt_characteristic->GetDescriptor(descriptor_id)); |
377 } | 382 } |
378 | 383 |
379 } // namespace bluetooth | 384 } // namespace bluetooth |
OLD | NEW |