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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void RegisterAdvertisement( | 73 void RegisterAdvertisement( |
74 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, | 74 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
75 const CreateAdvertisementCallback& callback, | 75 const CreateAdvertisementCallback& callback, |
76 const AdvertisementErrorCallback& error_callback) override; | 76 const AdvertisementErrorCallback& error_callback) override; |
77 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 77 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
78 void SetAdvertisingInterval( | 78 void SetAdvertisingInterval( |
79 const base::TimeDelta& min, | 79 const base::TimeDelta& min, |
80 const base::TimeDelta& max, | 80 const base::TimeDelta& max, |
81 const base::Closure& callback, | 81 const base::Closure& callback, |
82 const AdvertisementErrorCallback& error_callback) override; | 82 const AdvertisementErrorCallback& error_callback) override; |
| 83 void ResetAdvertising( |
| 84 const base::Closure& callback, |
| 85 const AdvertisementErrorCallback& error_callback) override; |
83 #endif | 86 #endif |
84 device::BluetoothLocalGattService* GetGattService( | 87 device::BluetoothLocalGattService* GetGattService( |
85 const std::string& identifier) const override; | 88 const std::string& identifier) const override; |
86 void AddDiscoverySession( | 89 void AddDiscoverySession( |
87 device::BluetoothDiscoveryFilter* discovery_filter, | 90 device::BluetoothDiscoveryFilter* discovery_filter, |
88 const base::Closure& callback, | 91 const base::Closure& callback, |
89 const DiscoverySessionErrorCallback& error_callback) override; | 92 const DiscoverySessionErrorCallback& error_callback) override; |
90 void RemoveDiscoverySession( | 93 void RemoveDiscoverySession( |
91 device::BluetoothDiscoveryFilter* discovery_filter, | 94 device::BluetoothDiscoveryFilter* discovery_filter, |
92 const base::Closure& callback, | 95 const base::Closure& callback, |
93 const DiscoverySessionErrorCallback& error_callback) override; | 96 const DiscoverySessionErrorCallback& error_callback) override; |
94 void SetDiscoveryFilter( | 97 void SetDiscoveryFilter( |
95 std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter, | 98 std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter, |
96 const base::Closure& callback, | 99 const base::Closure& callback, |
97 const DiscoverySessionErrorCallback& error_callback) override; | 100 const DiscoverySessionErrorCallback& error_callback) override; |
98 void RemovePairingDelegateInternal( | 101 void RemovePairingDelegateInternal( |
99 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 102 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
100 | 103 |
101 private: | 104 private: |
102 ~FakeCentral() override; | 105 ~FakeCentral() override; |
103 | 106 |
104 mojom::CentralState state_; | 107 mojom::CentralState state_; |
105 mojo::Binding<mojom::FakeCentral> binding_; | 108 mojo::Binding<mojom::FakeCentral> binding_; |
106 }; | 109 }; |
107 | 110 |
108 } // namespace bluetooth | 111 } // namespace bluetooth |
109 | 112 |
110 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ | 113 #endif // DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_ |
OLD | NEW |