| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const CreateServiceErrorCallback& error_callback) override {} | 95 const CreateServiceErrorCallback& error_callback) override {} |
| 96 | 96 |
| 97 void RegisterAudioSink( | 97 void RegisterAudioSink( |
| 98 const BluetoothAudioSink::Options& options, | 98 const BluetoothAudioSink::Options& options, |
| 99 const AcquiredCallback& callback, | 99 const AcquiredCallback& callback, |
| 100 const BluetoothAudioSink::ErrorCallback& error_callback) override {} | 100 const BluetoothAudioSink::ErrorCallback& error_callback) override {} |
| 101 | 101 |
| 102 void RegisterAdvertisement( | 102 void RegisterAdvertisement( |
| 103 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 103 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 104 const CreateAdvertisementCallback& callback, | 104 const CreateAdvertisementCallback& callback, |
| 105 const CreateAdvertisementErrorCallback& error_callback) override {} | 105 const AdvertisementErrorCallback& error_callback) override {} |
| 106 |
| 107 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 108 void SetAdvertisingInterval( |
| 109 const base::TimeDelta& min, |
| 110 const base::TimeDelta& max, |
| 111 const base::Closure& callback, |
| 112 const AdvertisementErrorCallback& error_callback) override {} |
| 113 #endif |
| 106 | 114 |
| 107 BluetoothLocalGattService* GetGattService( | 115 BluetoothLocalGattService* GetGattService( |
| 108 const std::string& identifier) const override { | 116 const std::string& identifier) const override { |
| 109 return nullptr; | 117 return nullptr; |
| 110 } | 118 } |
| 111 | 119 |
| 112 void TestErrorCallback() {} | 120 void TestErrorCallback() {} |
| 113 | 121 |
| 114 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; | 122 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; |
| 115 | 123 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 GetConnectErrorCallback(Call::NOT_EXPECTED)); | 864 GetConnectErrorCallback(Call::NOT_EXPECTED)); |
| 857 SimulateGattConnection(device); | 865 SimulateGattConnection(device); |
| 858 EXPECT_EQ(1u, adapter_->GetDevices().size()); | 866 EXPECT_EQ(1u, adapter_->GetDevices().size()); |
| 859 RemoveTimedOutDevices(); | 867 RemoveTimedOutDevices(); |
| 860 EXPECT_EQ(0, observer.device_removed_count()); | 868 EXPECT_EQ(0, observer.device_removed_count()); |
| 861 EXPECT_EQ(1u, adapter_->GetDevices().size()); | 869 EXPECT_EQ(1u, adapter_->GetDevices().size()); |
| 862 } | 870 } |
| 863 #endif // defined(OS_ANDROID) || defined(OS_MACOSX) | 871 #endif // defined(OS_ANDROID) || defined(OS_MACOSX) |
| 864 | 872 |
| 865 } // namespace device | 873 } // namespace device |
| OLD | NEW |