commit | dbcd5d632a8d398032e41ccef750658c610fc3c9 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Feb 04 01:47:38 2021 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Feb 04 04:19:28 2021 +0000 |
tree | 5360b5edecba37b2f487cf77553ecc2af13d10f6 | |
parent | 7fed6672053c86e254e0043d6218436af57b0409 [diff] |
Improve getConnectionOwnerUid tests. Currently, the tests only check whether the method throws a SecurityException or not. Also check the return value of the call, by mocking out InetDiagMessage.getConnectionOwnerUid. This is required to test an upcoming change that will never throw SecurityException but always return INVALID_UID if the caller lacks permissions. Bug: 173331190 Test: test-only change Change-Id: I63f42a2f098fcf8796c9b4525a3a7b8320c0a139