| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void RegisterAudioSink( | 96 void RegisterAudioSink( |
| 97 const BluetoothAudioSink::Options& options, | 97 const BluetoothAudioSink::Options& options, |
| 98 const AcquiredCallback& callback, | 98 const AcquiredCallback& callback, |
| 99 const BluetoothAudioSink::ErrorCallback& error_callback) override {} | 99 const BluetoothAudioSink::ErrorCallback& error_callback) override {} |
| 100 | 100 |
| 101 void RegisterAdvertisement( | 101 void RegisterAdvertisement( |
| 102 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 102 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 103 const CreateAdvertisementCallback& callback, | 103 const CreateAdvertisementCallback& callback, |
| 104 const CreateAdvertisementErrorCallback& error_callback) override {} | 104 const CreateAdvertisementErrorCallback& error_callback) override {} |
| 105 | 105 |
| 106 BluetoothLocalGattService* GetGattService( |
| 107 const std::string& identifier) const override { |
| 108 return nullptr; |
| 109 } |
| 110 |
| 106 void TestErrorCallback() {} | 111 void TestErrorCallback() {} |
| 107 | 112 |
| 108 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; | 113 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; |
| 109 | 114 |
| 110 void TestOnStartDiscoverySession( | 115 void TestOnStartDiscoverySession( |
| 111 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session) { | 116 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session) { |
| 112 discovery_sessions_.push_back(std::move(discovery_session)); | 117 discovery_sessions_.push_back(std::move(discovery_session)); |
| 113 } | 118 } |
| 114 | 119 |
| 115 void CleanupSessions() { discovery_sessions_.clear(); } | 120 void CleanupSessions() { discovery_sessions_.clear(); } |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 service->Register(GetCallback(Call::NOT_EXPECTED), | 763 service->Register(GetCallback(Call::NOT_EXPECTED), |
| 759 GetGattErrorCallback(Call::EXPECTED)); | 764 GetGattErrorCallback(Call::EXPECTED)); |
| 760 service->Unregister(GetCallback(Call::EXPECTED), | 765 service->Unregister(GetCallback(Call::EXPECTED), |
| 761 GetGattErrorCallback(Call::NOT_EXPECTED)); | 766 GetGattErrorCallback(Call::NOT_EXPECTED)); |
| 762 service->Unregister(GetCallback(Call::NOT_EXPECTED), | 767 service->Unregister(GetCallback(Call::NOT_EXPECTED), |
| 763 GetGattErrorCallback(Call::EXPECTED)); | 768 GetGattErrorCallback(Call::EXPECTED)); |
| 764 } | 769 } |
| 765 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) | 770 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 766 | 771 |
| 767 } // namespace device | 772 } // namespace device |
| OLD | NEW |