| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } | 136 } |
| 137 std::string last_gatt_characteristic_id() const { | 137 std::string last_gatt_characteristic_id() const { |
| 138 return last_gatt_characteristic_id_; | 138 return last_gatt_characteristic_id_; |
| 139 } | 139 } |
| 140 BluetoothUUID last_gatt_characteristic_uuid() const { | 140 BluetoothUUID last_gatt_characteristic_uuid() const { |
| 141 return last_gatt_characteristic_uuid_; | 141 return last_gatt_characteristic_uuid_; |
| 142 } | 142 } |
| 143 std::vector<uint8_t> last_changed_characteristic_value() const { | 143 std::vector<uint8_t> last_changed_characteristic_value() const { |
| 144 return last_changed_characteristic_value_; | 144 return last_changed_characteristic_value_; |
| 145 } | 145 } |
| 146 std::vector<std::vector<uint8_t>> |
| 147 previous_characteristic_value_changed_values() const { |
| 148 return previous_characteristic_value_changed_values_; |
| 149 } |
| 146 std::string last_gatt_descriptor_id() const { | 150 std::string last_gatt_descriptor_id() const { |
| 147 return last_gatt_descriptor_id_; | 151 return last_gatt_descriptor_id_; |
| 148 } | 152 } |
| 149 BluetoothUUID last_gatt_descriptor_uuid() const { | 153 BluetoothUUID last_gatt_descriptor_uuid() const { |
| 150 return last_gatt_descriptor_uuid_; | 154 return last_gatt_descriptor_uuid_; |
| 151 } | 155 } |
| 152 std::vector<uint8_t> last_changed_descriptor_value() const { | 156 std::vector<uint8_t> last_changed_descriptor_value() const { |
| 153 return last_changed_descriptor_value_; | 157 return last_changed_descriptor_value_; |
| 154 } | 158 } |
| 155 | 159 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 int gatt_characteristic_removed_count_; | 195 int gatt_characteristic_removed_count_; |
| 192 int gatt_characteristic_value_changed_count_; | 196 int gatt_characteristic_value_changed_count_; |
| 193 int gatt_descriptor_added_count_; | 197 int gatt_descriptor_added_count_; |
| 194 int gatt_descriptor_removed_count_; | 198 int gatt_descriptor_removed_count_; |
| 195 int gatt_descriptor_value_changed_count_; | 199 int gatt_descriptor_value_changed_count_; |
| 196 std::string last_gatt_service_id_; | 200 std::string last_gatt_service_id_; |
| 197 BluetoothUUID last_gatt_service_uuid_; | 201 BluetoothUUID last_gatt_service_uuid_; |
| 198 std::string last_gatt_characteristic_id_; | 202 std::string last_gatt_characteristic_id_; |
| 199 BluetoothUUID last_gatt_characteristic_uuid_; | 203 BluetoothUUID last_gatt_characteristic_uuid_; |
| 200 std::vector<uint8_t> last_changed_characteristic_value_; | 204 std::vector<uint8_t> last_changed_characteristic_value_; |
| 205 std::vector<std::vector<uint8_t>> |
| 206 previous_characteristic_value_changed_values_; |
| 201 std::string last_gatt_descriptor_id_; | 207 std::string last_gatt_descriptor_id_; |
| 202 BluetoothUUID last_gatt_descriptor_uuid_; | 208 BluetoothUUID last_gatt_descriptor_uuid_; |
| 203 std::vector<uint8_t> last_changed_descriptor_value_; | 209 std::vector<uint8_t> last_changed_descriptor_value_; |
| 204 | 210 |
| 205 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); | 211 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); |
| 206 }; | 212 }; |
| 207 | 213 |
| 208 } // namespace device | 214 } // namespace device |
| 209 | 215 |
| 210 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 216 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| OLD | NEW |