| 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_BLUETOOTH_ADAPTER_OBSERVER_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "device/bluetooth/bluetooth_adapter.h" | 8 #include "device/bluetooth/bluetooth_adapter.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // BluetoothAdapter::Observer | 22 // BluetoothAdapter::Observer |
| 23 void AdapterPresentChanged(BluetoothAdapter* adapter, bool present) override; | 23 void AdapterPresentChanged(BluetoothAdapter* adapter, bool present) override; |
| 24 void AdapterPoweredChanged(BluetoothAdapter* adapter, bool powered) override; | 24 void AdapterPoweredChanged(BluetoothAdapter* adapter, bool powered) override; |
| 25 void AdapterDiscoverableChanged(BluetoothAdapter* adapter, | 25 void AdapterDiscoverableChanged(BluetoothAdapter* adapter, |
| 26 bool discoverable) override; | 26 bool discoverable) override; |
| 27 void AdapterDiscoveringChanged(BluetoothAdapter* adapter, | 27 void AdapterDiscoveringChanged(BluetoothAdapter* adapter, |
| 28 bool discovering) override; | 28 bool discovering) override; |
| 29 void DeviceAdded(BluetoothAdapter* adapter, BluetoothDevice* device) override; | 29 void DeviceAdded(BluetoothAdapter* adapter, BluetoothDevice* device) override; |
| 30 void DeviceChanged(BluetoothAdapter* adapter, | 30 void DeviceChanged(BluetoothAdapter* adapter, |
| 31 BluetoothDevice* device) override; | 31 BluetoothDevice* device) override; |
| 32 void DeviceAddressChanged(device::BluetoothAdapter* adapter, |
| 33 device::BluetoothDevice* device, |
| 34 const std::string& old_address) override; |
| 32 void DeviceRemoved(BluetoothAdapter* adapter, | 35 void DeviceRemoved(BluetoothAdapter* adapter, |
| 33 BluetoothDevice* device) override; | 36 BluetoothDevice* device) override; |
| 34 void GattServiceAdded(BluetoothAdapter* adapter, | 37 void GattServiceAdded(BluetoothAdapter* adapter, |
| 35 BluetoothDevice* device, | 38 BluetoothDevice* device, |
| 36 BluetoothGattService* service) override; | 39 BluetoothGattService* service) override; |
| 37 void GattServiceRemoved(BluetoothAdapter* adapter, | 40 void GattServiceRemoved(BluetoothAdapter* adapter, |
| 38 BluetoothDevice* device, | 41 BluetoothDevice* device, |
| 39 BluetoothGattService* service) override; | 42 BluetoothGattService* service) override; |
| 40 void GattDiscoveryCompleteForService(BluetoothAdapter* adapter, | 43 void GattDiscoveryCompleteForService(BluetoothAdapter* adapter, |
| 41 BluetoothGattService* service) override; | 44 BluetoothGattService* service) override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 64 int powered_changed_count() { return powered_changed_count_; } | 67 int powered_changed_count() { return powered_changed_count_; } |
| 65 int discoverable_changed_count() { return discoverable_changed_count_; } | 68 int discoverable_changed_count() { return discoverable_changed_count_; } |
| 66 int discovering_changed_count() { return discovering_changed_count_; } | 69 int discovering_changed_count() { return discovering_changed_count_; } |
| 67 bool last_present() { return last_present_; } | 70 bool last_present() { return last_present_; } |
| 68 bool last_powered() { return last_powered_; } | 71 bool last_powered() { return last_powered_; } |
| 69 bool last_discovering() { return last_discovering_; } | 72 bool last_discovering() { return last_discovering_; } |
| 70 | 73 |
| 71 // Device related: | 74 // Device related: |
| 72 int device_added_count() { return device_added_count_; } | 75 int device_added_count() { return device_added_count_; } |
| 73 int device_changed_count() { return device_changed_count_; } | 76 int device_changed_count() { return device_changed_count_; } |
| 77 int device_address_changed_count() { return device_address_changed_count_; } |
| 74 int device_removed_count() { return device_removed_count_; } | 78 int device_removed_count() { return device_removed_count_; } |
| 75 BluetoothDevice* last_device() { return last_device_; } | 79 BluetoothDevice* last_device() { return last_device_; } |
| 76 std::string last_device_address() { return last_device_address_; } | 80 std::string last_device_address() { return last_device_address_; } |
| 77 | 81 |
| 78 // GATT related: | 82 // GATT related: |
| 79 int gatt_service_added_count() { return gatt_service_added_count_; } | 83 int gatt_service_added_count() { return gatt_service_added_count_; } |
| 80 int gatt_service_removed_count() { return gatt_service_removed_count_; } | 84 int gatt_service_removed_count() { return gatt_service_removed_count_; } |
| 81 int gatt_service_changed_count() { return gatt_service_changed_count_; } | 85 int gatt_service_changed_count() { return gatt_service_changed_count_; } |
| 82 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; } | 86 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; } |
| 83 int gatt_characteristic_added_count() { | 87 int gatt_characteristic_added_count() { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int powered_changed_count_; | 129 int powered_changed_count_; |
| 126 int discoverable_changed_count_; | 130 int discoverable_changed_count_; |
| 127 int discovering_changed_count_; | 131 int discovering_changed_count_; |
| 128 bool last_present_; | 132 bool last_present_; |
| 129 bool last_powered_; | 133 bool last_powered_; |
| 130 bool last_discovering_; | 134 bool last_discovering_; |
| 131 | 135 |
| 132 // Device related: | 136 // Device related: |
| 133 int device_added_count_; | 137 int device_added_count_; |
| 134 int device_changed_count_; | 138 int device_changed_count_; |
| 139 int device_address_changed_count_; |
| 135 int device_removed_count_; | 140 int device_removed_count_; |
| 136 BluetoothDevice* last_device_; | 141 BluetoothDevice* last_device_; |
| 137 std::string last_device_address_; | 142 std::string last_device_address_; |
| 138 | 143 |
| 139 // GATT related: | 144 // GATT related: |
| 140 int gatt_service_added_count_; | 145 int gatt_service_added_count_; |
| 141 int gatt_service_removed_count_; | 146 int gatt_service_removed_count_; |
| 142 int gatt_service_changed_count_; | 147 int gatt_service_changed_count_; |
| 143 int gatt_discovery_complete_count_; | 148 int gatt_discovery_complete_count_; |
| 144 int gatt_characteristic_added_count_; | 149 int gatt_characteristic_added_count_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 155 std::string last_gatt_descriptor_id_; | 160 std::string last_gatt_descriptor_id_; |
| 156 BluetoothUUID last_gatt_descriptor_uuid_; | 161 BluetoothUUID last_gatt_descriptor_uuid_; |
| 157 std::vector<uint8> last_changed_descriptor_value_; | 162 std::vector<uint8> last_changed_descriptor_value_; |
| 158 | 163 |
| 159 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); | 164 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); |
| 160 }; | 165 }; |
| 161 | 166 |
| 162 } // namespace device | 167 } // namespace device |
| 163 | 168 |
| 164 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ | 169 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ |
| OLD | NEW |