commit | f61ca94e2cf23f6f5566eb6fd1e36fe0e10e04ae | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Dec 15 11:02:22 2020 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Dec 15 21:10:36 2020 +0900 |
tree | a90054dabd1bce833fdc1866791e425e55ffc240 | |
parent | 1b17648534db5f44fd5d74cdf8a1da572d816d78 [diff] |
Allow ConnectivityServiceTest to change the calling UID. Allow ConnectivityServiceTest to change the UID by replacing static calls to Binder.getCallingUid() with a method that can be mocked. Add registerNetworkCallbackAsUid as an initial way to exercise this, and add some test coverage to the always-on lockdown test to confirm that things are working as expected. Bug: 173331190 Test: new unit tests Change-Id: Ie0b32460e20e5906a0f479191e11a062f21cc608