commit | 6ab7449222fb39f0cd8c0734e1c0aa35a2828fdf | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Tue Aug 08 11:25:43 2023 -0700 |
committer | Atneya Nair <atneya@google.com> | Tue Aug 08 13:07:54 2023 -0700 |
tree | 8284f4fd499f7f7bd6ac1ec4ac024e8233906579 | |
parent | 13e208cfce26cb080fe92a8ebabd434f07031b62 [diff] |
Add getFutureForListener to TestUtils Abstract out listener registration logic from getFutureForIntent to apply to other listener registration callbacks. Add tests which ensure that the listener is unregistered when the future completes or is cancelled. Bug: 288333346 Bug: 294636572 Test: atest mediatestutilstests Change-Id: I91f34ee2e215cafe0d0cd0b33f831b244850ab06