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 #ifndef DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ | 4 #ifndef DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ |
5 #define DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ | 5 #define DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void RegisterAdvertisement( | 61 void RegisterAdvertisement( |
62 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, | 62 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
63 const CreateAdvertisementCallback& callback, | 63 const CreateAdvertisementCallback& callback, |
64 const AdvertisementErrorCallback& error_callback) override; | 64 const AdvertisementErrorCallback& error_callback) override; |
65 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 65 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
66 void SetAdvertisingInterval( | 66 void SetAdvertisingInterval( |
67 const base::TimeDelta& min, | 67 const base::TimeDelta& min, |
68 const base::TimeDelta& max, | 68 const base::TimeDelta& max, |
69 const base::Closure& callback, | 69 const base::Closure& callback, |
70 const AdvertisementErrorCallback& error_callback) override; | 70 const AdvertisementErrorCallback& error_callback) override; |
| 71 void ResetAdvertising( |
| 72 const base::Closure& callback, |
| 73 const AdvertisementErrorCallback& error_callback) override; |
71 #endif | 74 #endif |
72 device::BluetoothLocalGattService* GetGattService( | 75 device::BluetoothLocalGattService* GetGattService( |
73 const std::string& identifier) const override; | 76 const std::string& identifier) const override; |
74 void AddDiscoverySession( | 77 void AddDiscoverySession( |
75 device::BluetoothDiscoveryFilter* discovery_filter, | 78 device::BluetoothDiscoveryFilter* discovery_filter, |
76 const base::Closure& callback, | 79 const base::Closure& callback, |
77 const DiscoverySessionErrorCallback& error_callback) override; | 80 const DiscoverySessionErrorCallback& error_callback) override; |
78 void RemoveDiscoverySession( | 81 void RemoveDiscoverySession( |
79 device::BluetoothDiscoveryFilter* discovery_filter, | 82 device::BluetoothDiscoveryFilter* discovery_filter, |
80 const base::Closure& callback, | 83 const base::Closure& callback, |
81 const DiscoverySessionErrorCallback& error_callback) override; | 84 const DiscoverySessionErrorCallback& error_callback) override; |
82 void SetDiscoveryFilter( | 85 void SetDiscoveryFilter( |
83 std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter, | 86 std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter, |
84 const base::Closure& callback, | 87 const base::Closure& callback, |
85 const DiscoverySessionErrorCallback& error_callback) override; | 88 const DiscoverySessionErrorCallback& error_callback) override; |
86 void RemovePairingDelegateInternal( | 89 void RemovePairingDelegateInternal( |
87 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 90 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
88 | 91 |
89 private: | 92 private: |
90 ~FakeCentral() override; | 93 ~FakeCentral() override; |
91 | 94 |
92 mojom::CentralState state_; | 95 mojom::CentralState state_; |
93 mojo::Binding<mojom::FakeCentral> binding_; | 96 mojo::Binding<mojom::FakeCentral> binding_; |
94 }; | 97 }; |
95 | 98 |
96 } // namespace bluetooth | 99 } // namespace bluetooth |
97 | 100 |
98 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ | 101 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ |
OLD | NEW |