bluetooth: Add test for the adapter being removed during SetPowered
Changes TestBluetoothAdapterClient::Properties to save Set callbacks if there is no next response set. Just like in real devices, these callbacks are run after the adapter gets removed. Also adds a test to make sure that when the adapter gets removed during a SetPowered call the state is correctly updated and there are no extra State Changed events. Bug: 896113 Change-Id: Iecc55cc2a8f4b2ff4d93fcacfd5e1a64095b2b7d Reviewed-on: https://chromium-review.googlesource.com/c/1304033 Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:Ovidio Henriquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#603700}
Showing
Please register or sign in to comment