commit | eeca6584cff3858e6993dd4b88f1b55418f07ad2 | [log] [tgz] |
---|---|---|
author | Fyodor Kupolov <fkupolov@google.com> | Fri Apr 08 12:14:04 2016 -0700 |
committer | Fyodor Kupolov <fkupolov@google.com> | Mon Apr 11 15:33:45 2016 -0700 |
tree | 1cc3233e82f22c95105e8280f71e3eaf1d1aca62 | |
parent | f3d241486b17cbfef7ad9b57aef3454ac3e0e769 [diff] |
Make AccountManagerServiceTest work again It was broken for quite a while. Introduced the following changes: - Use mockito to mock AppOpsManager and UserManager - Use MockContext directly and override what is necessary. RenamingDelegatingContext doesn't work with absolute file names for database paths, which is the case for system server DBs. Bug: 26279712 Change-Id: I9f2a3892f9bd7a882d78f0bb7beb8669f7dc8c6f