commit | de27a647839ebe86878a703950f53a1ae16349ff | [log] [tgz] |
---|---|---|
author | Aaron Wisner <awisner@google.com> | Mon Jul 23 15:40:58 2018 -0500 |
committer | Aaron Wisner <awisner@google.com> | Tue Jul 24 11:24:15 2018 -0500 |
tree | 839d5d4c329fe15e5391e02f829b886db4f00d05 | |
parent | 376379360b9745c9808a7aeefadc62846649b782 [diff] |
Add derived UsbTransport class with USB reset method For testing there needs to be a way to simulate unplugging and replugging a device. This change adds support for a USB reset method that does this. Also add timeouts, so USB reads/writes don't block forever on an unresponsive device. Test: glinux, fastboot tool still works Test: Reset confirmed working via wireshark Linux URB captures Change-Id: I7213a2395d4ef1c0238810e4929ab966e78c8b55