diff options
| author | 2024-04-05 23:29:50 +0000 | |
|---|---|---|
| committer | 2024-04-05 23:32:06 +0000 | |
| commit | 384727666b7414f0d897360a8e81b4ad5cb90b3c (patch) | |
| tree | 00bf14e8828c6c68574bd38b7b818c0277083109 /api/coverage/tools | |
| parent | 7512374ca84be688bf127f724758ed21499d901e (diff) | |
Add unit tests covering USB data enable/disable scenarios
This unit test targets UsbService.enableUsbData() and UsbService.enableUsbDataWhileDocked(), covering the following scenarios:
Disabling takes precedence: Disabling requested by requester A overrides a subsequent enabling request from requester B.
Self-cancellation: requester A can cancel their own disabling request by requesting enabling.
Bug: 304579252
Test: atest UsbTests:UsbServiceTest
Change-Id: I52f13c29f87e8bd45459a5a698f96d0ab7a5650f
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions