OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ | 5 #ifndef COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ |
6 #define COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ | 6 #define COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int32_t offset, | 113 int32_t offset, |
114 bool is_long, | 114 bool is_long, |
115 const RequestGattReadCallback& callback) override; | 115 const RequestGattReadCallback& callback) override; |
116 | 116 |
117 void RequestGattWrite(mojom::BluetoothAddressPtr address, | 117 void RequestGattWrite(mojom::BluetoothAddressPtr address, |
118 int32_t attribute_handle, | 118 int32_t attribute_handle, |
119 int32_t offset, | 119 int32_t offset, |
120 mojo::Array<uint8_t> value, | 120 mojo::Array<uint8_t> value, |
121 const RequestGattWriteCallback& callback) override; | 121 const RequestGattWriteCallback& callback) override; |
122 | 122 |
| 123 void OnGetSdpRecords( |
| 124 mojom::BluetoothStatus status, |
| 125 mojom::BluetoothAddressPtr remove_addr, |
| 126 mojom::BluetoothUUIDPtr target_uuid, |
| 127 mojo::Array<mojom::BluetoothSdpRecordPtr> records) override; |
| 128 |
123 const std::vector<mojo::Array<mojom::BluetoothPropertyPtr>>& | 129 const std::vector<mojo::Array<mojom::BluetoothPropertyPtr>>& |
124 device_found_data() const { | 130 device_found_data() const { |
125 return device_found_data_; | 131 return device_found_data_; |
126 } | 132 } |
127 | 133 |
128 const std::vector<std::unique_ptr<LEDeviceFoundData>>& le_device_found_data() | 134 const std::vector<std::unique_ptr<LEDeviceFoundData>>& le_device_found_data() |
129 const { | 135 const { |
130 return le_device_found_data_; | 136 return le_device_found_data_; |
131 } | 137 } |
132 | 138 |
133 const std::vector<std::unique_ptr<GattDBResult>>& gatt_db_result() const { | 139 const std::vector<std::unique_ptr<GattDBResult>>& gatt_db_result() const { |
134 return gatt_db_result_; | 140 return gatt_db_result_; |
135 } | 141 } |
136 | 142 |
137 private: | 143 private: |
138 std::vector<mojo::Array<mojom::BluetoothPropertyPtr>> device_found_data_; | 144 std::vector<mojo::Array<mojom::BluetoothPropertyPtr>> device_found_data_; |
139 std::vector<std::unique_ptr<LEDeviceFoundData>> le_device_found_data_; | 145 std::vector<std::unique_ptr<LEDeviceFoundData>> le_device_found_data_; |
140 std::vector<std::unique_ptr<GattDBResult>> gatt_db_result_; | 146 std::vector<std::unique_ptr<GattDBResult>> gatt_db_result_; |
141 | 147 |
142 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothInstance); | 148 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothInstance); |
143 }; | 149 }; |
144 | 150 |
145 } // namespace arc | 151 } // namespace arc |
146 | 152 |
147 #endif // COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ | 153 #endif // COMPONENTS_ARC_TEST_FAKE_BLUETOOTH_INSTANCE_H_ |
OLD | NEW |