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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void RegisterAdvertisement( | 111 void RegisterAdvertisement( |
112 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, | 112 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
113 const CreateAdvertisementCallback& callback, | 113 const CreateAdvertisementCallback& callback, |
114 const AdvertisementErrorCallback& error_callback) override; | 114 const AdvertisementErrorCallback& error_callback) override; |
115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
116 void SetAdvertisingInterval( | 116 void SetAdvertisingInterval( |
117 const base::TimeDelta& min, | 117 const base::TimeDelta& min, |
118 const base::TimeDelta& max, | 118 const base::TimeDelta& max, |
119 const base::Closure& callback, | 119 const base::Closure& callback, |
120 const AdvertisementErrorCallback& error_callback) override; | 120 const AdvertisementErrorCallback& error_callback) override; |
| 121 void ResetAdvertising( |
| 122 const base::Closure& callback, |
| 123 const AdvertisementErrorCallback& error_callback) override; |
121 #endif | 124 #endif |
122 device::BluetoothLocalGattService* GetGattService( | 125 device::BluetoothLocalGattService* GetGattService( |
123 const std::string& identifier) const override; | 126 const std::string& identifier) const override; |
124 void AddDiscoverySession( | 127 void AddDiscoverySession( |
125 device::BluetoothDiscoveryFilter* discovery_filter, | 128 device::BluetoothDiscoveryFilter* discovery_filter, |
126 const base::Closure& callback, | 129 const base::Closure& callback, |
127 const DiscoverySessionErrorCallback& error_callback) override; | 130 const DiscoverySessionErrorCallback& error_callback) override; |
128 void RemoveDiscoverySession( | 131 void RemoveDiscoverySession( |
129 device::BluetoothDiscoveryFilter* discovery_filter, | 132 device::BluetoothDiscoveryFilter* discovery_filter, |
130 const base::Closure& callback, | 133 const base::Closure& callback, |
(...skipping 18 matching lines...) Expand all Loading... |
149 const std::string& characteristic_id, | 152 const std::string& characteristic_id, |
150 const std::string& descriptor_id) const; | 153 const std::string& descriptor_id) const; |
151 | 154 |
152 mojom::CentralState state_; | 155 mojom::CentralState state_; |
153 mojo::Binding<mojom::FakeCentral> binding_; | 156 mojo::Binding<mojom::FakeCentral> binding_; |
154 }; | 157 }; |
155 | 158 |
156 } // namespace bluetooth | 159 } // namespace bluetooth |
157 | 160 |
158 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ | 161 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ |
OLD | NEW |