commit | de7f7447d587f2a34312ca9154b63474b6002147 | [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 | 408c4d5c2d5e58812a477f1262b4d0f805598fe6 | |
parent | 42a97894cd1f8746c8e150362784253af8523733 [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