DescriptionAdd WebUSB layout tests for device disconnection.
These tests ensure that when a device has been disconnected and thus
the Mojo pipe between the renderer and browser process is closed calls
to methods on the USBDevice object fail correctly by rejecting with a
NotFoundError.
At the moment this requires WebUSBDeviceImpl to explicitly monitor for
connection errors and reset its interface pointer. Ideally this should
happen automatically.
BUG=492204
Committed: https://crrev.com/0a2ccc59a9951d04d92d721c399f9ceef6e64b11
Cr-Commit-Position: refs/heads/master@{#378816}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Addresses rockot@'s nits. #
Messages
Total messages: 12 (6 generated)
|