| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/bluetooth_adapter.h" | 5 #include "device/bluetooth/bluetooth_adapter.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const ServiceOptions& options, | 87 const ServiceOptions& options, |
| 88 const CreateServiceCallback& callback, | 88 const CreateServiceCallback& callback, |
| 89 const CreateServiceErrorCallback& error_callback) override {} | 89 const CreateServiceErrorCallback& error_callback) override {} |
| 90 | 90 |
| 91 void CreateL2capService( | 91 void CreateL2capService( |
| 92 const BluetoothUUID& uuid, | 92 const BluetoothUUID& uuid, |
| 93 const ServiceOptions& options, | 93 const ServiceOptions& options, |
| 94 const CreateServiceCallback& callback, | 94 const CreateServiceCallback& callback, |
| 95 const CreateServiceErrorCallback& error_callback) override {} | 95 const CreateServiceErrorCallback& error_callback) override {} |
| 96 | 96 |
| 97 void RegisterAudioSink( | |
| 98 const BluetoothAudioSink::Options& options, | |
| 99 const AcquiredCallback& callback, | |
| 100 const BluetoothAudioSink::ErrorCallback& error_callback) override {} | |
| 101 | |
| 102 void RegisterAdvertisement( | 97 void RegisterAdvertisement( |
| 103 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 98 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 104 const CreateAdvertisementCallback& callback, | 99 const CreateAdvertisementCallback& callback, |
| 105 const AdvertisementErrorCallback& error_callback) override {} | 100 const AdvertisementErrorCallback& error_callback) override {} |
| 106 | 101 |
| 107 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 102 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 108 void SetAdvertisingInterval( | 103 void SetAdvertisingInterval( |
| 109 const base::TimeDelta& min, | 104 const base::TimeDelta& min, |
| 110 const base::TimeDelta& max, | 105 const base::TimeDelta& max, |
| 111 const base::Closure& callback, | 106 const base::Closure& callback, |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 GetConnectErrorCallback(Call::NOT_EXPECTED)); | 859 GetConnectErrorCallback(Call::NOT_EXPECTED)); |
| 865 SimulateGattConnection(device); | 860 SimulateGattConnection(device); |
| 866 EXPECT_EQ(1u, adapter_->GetDevices().size()); | 861 EXPECT_EQ(1u, adapter_->GetDevices().size()); |
| 867 RemoveTimedOutDevices(); | 862 RemoveTimedOutDevices(); |
| 868 EXPECT_EQ(0, observer.device_removed_count()); | 863 EXPECT_EQ(0, observer.device_removed_count()); |
| 869 EXPECT_EQ(1u, adapter_->GetDevices().size()); | 864 EXPECT_EQ(1u, adapter_->GetDevices().size()); |
| 870 } | 865 } |
| 871 #endif // defined(OS_ANDROID) || defined(OS_MACOSX) | 866 #endif // defined(OS_ANDROID) || defined(OS_MACOSX) |
| 872 | 867 |
| 873 } // namespace device | 868 } // namespace device |
| OLD | NEW |