bluetooth: Call AdapterPropertyChanged before AdapterAdded
On real devices, AdapterPropertyChanged is called for each property in the adapter before AdapterAdded is called. During this, the adapter should be included when returning GetAdapter and all its properties should be accessible (though they will be empty). Changes TestBluetoothAdapterClient to match this behavior but instead of calling AdapterPropertyChanged for all properties, we call it for the two that are used in tests "Powered" and "Discovering". Bug: 870192 Change-Id: I501cfb8ad2665aee27314188e5a7f667e2209ebf Reviewed-on: https://chromium-review.googlesource.com/c/1358101Reviewed-by:Ovidio Henriquez <odejesush@chromium.org> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#613285}
Showing
Please register or sign in to comment