Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Unified Diff: device/bluetooth/test/test_bluetooth_adapter_observer.h

Issue 1341103004: Handle change of BLE address after pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased onto latest master Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/test/test_bluetooth_adapter_observer.h
diff --git a/device/bluetooth/test/test_bluetooth_adapter_observer.h b/device/bluetooth/test/test_bluetooth_adapter_observer.h
index f3a9cf879de0e6a5e78971fa6df6b716eecba83e..7ec06889dcf70c90562235dbb4d1ccbe3ad50a3b 100644
--- a/device/bluetooth/test/test_bluetooth_adapter_observer.h
+++ b/device/bluetooth/test/test_bluetooth_adapter_observer.h
@@ -29,6 +29,9 @@ class TestBluetoothAdapterObserver : public BluetoothAdapter::Observer {
void DeviceAdded(BluetoothAdapter* adapter, BluetoothDevice* device) override;
void DeviceChanged(BluetoothAdapter* adapter,
BluetoothDevice* device) override;
+ void DeviceAddressChanged(device::BluetoothAdapter* adapter,
+ device::BluetoothDevice* device,
+ const std::string& old_address) override;
void DeviceRemoved(BluetoothAdapter* adapter,
BluetoothDevice* device) override;
void GattServiceAdded(BluetoothAdapter* adapter,
@@ -71,6 +74,7 @@ class TestBluetoothAdapterObserver : public BluetoothAdapter::Observer {
// Device related:
int device_added_count() { return device_added_count_; }
int device_changed_count() { return device_changed_count_; }
+ int device_address_changed_count() { return device_address_changed_count_; }
int device_removed_count() { return device_removed_count_; }
BluetoothDevice* last_device() { return last_device_; }
std::string last_device_address() { return last_device_address_; }
@@ -132,6 +136,7 @@ class TestBluetoothAdapterObserver : public BluetoothAdapter::Observer {
// Device related:
int device_added_count_;
int device_changed_count_;
+ int device_address_changed_count_;
int device_removed_count_;
BluetoothDevice* last_device_;
std::string last_device_address_;

Powered by Google App Engine
This is Rietveld 408576698