| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return gatt_services_discovered_count_; | 105 return gatt_services_discovered_count_; |
| 106 } | 106 } |
| 107 int gatt_service_changed_count() { return gatt_service_changed_count_; } | 107 int gatt_service_changed_count() { return gatt_service_changed_count_; } |
| 108 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; } | 108 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; } |
| 109 int gatt_characteristic_added_count() { | 109 int gatt_characteristic_added_count() { |
| 110 return gatt_characteristic_added_count_; | 110 return gatt_characteristic_added_count_; |
| 111 } | 111 } |
| 112 int gatt_characteristic_removed_count() { | 112 int gatt_characteristic_removed_count() { |
| 113 return gatt_characteristic_removed_count_; | 113 return gatt_characteristic_removed_count_; |
| 114 } | 114 } |
| 115 int gatt_characteristic_value_changed_count() { | 115 int gatt_characteristic_value_changed_count() const { |
| 116 return gatt_characteristic_value_changed_count_; | 116 return gatt_characteristic_value_changed_count_; |
| 117 } | 117 } |
| 118 int gatt_descriptor_added_count() { return gatt_descriptor_added_count_; } | 118 int gatt_descriptor_added_count() { return gatt_descriptor_added_count_; } |
| 119 int gatt_descriptor_removed_count() { return gatt_descriptor_removed_count_; } | 119 int gatt_descriptor_removed_count() { return gatt_descriptor_removed_count_; } |
| 120 int gatt_descriptor_value_changed_count() { | 120 int gatt_descriptor_value_changed_count() { |
| 121 return gatt_descriptor_value_changed_count_; | 121 return gatt_descriptor_value_changed_count_; |
| 122 } | 122 } |
| 123 std::string last_gatt_service_id() { return last_gatt_service_id_; } | 123 std::string last_gatt_service_id() { return last_gatt_service_id_; } |
| 124 BluetoothUUID last_gatt_service_uuid() { return last_gatt_service_uuid_; } | 124 BluetoothUUID last_gatt_service_uuid() { return last_gatt_service_uuid_; } |
| 125 std::string last_gatt_characteristic_id() { | 125 std::string last_gatt_characteristic_id() { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 std::string last_gatt_descriptor_id_; | 187 std::string last_gatt_descriptor_id_; |
| 188 BluetoothUUID last_gatt_descriptor_uuid_; | 188 BluetoothUUID last_gatt_descriptor_uuid_; |
| 189 std::vector<uint8_t> last_changed_descriptor_value_; | 189 std::vector<uint8_t> last_changed_descriptor_value_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); | 191 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace device | 194 } // namespace device |
| 195 | 195 |
| 196 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 196 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| OLD | NEW |