commit | f39a34c1b4a37e48c03731440fea3f4edb8d445d | [log] [tgz] |
---|---|---|
author | Jonathan Scott <scottjonathan@google.com> | Sun Mar 07 18:25:49 2021 +0000 |
committer | Jonathan Scott <scottjonathan@google.com> | Fri Mar 12 16:28:57 2021 +0000 |
tree | e0682f40250bdbc8b29dcd495853eddb7c57ad83 | |
parent | b9918b1fa63b6d6cdeca41da896edaf586874268 [diff] |
Allow DevicePolicyController and User to be AutoClosed. This enables an easier style of testing when you want to create a user and remove at the end of the test - or enable a DPC and remove it at the end of the test. This pattern can be re-used elsewhere as new functionality is added to Nene. Test: atest NeneTest Bug: 180595646 Change-Id: Iff541c0a9e62a13acaf10715b5c7feea265065fd