commit | bbadec37d215190583d260d5e1d4ab1df00009d2 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Aug 16 15:30:05 2021 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Aug 17 01:36:54 2021 +0900 |
tree | 230fe4a6276aba91a3781ef82c1f897ded2c17e8 | |
parent | 5805d3cfd2959f689fab883775249ad349e00f6b [diff] |
Add a unit test for a bug in registerDefaultNetworkCallback. Currently, when a VPN app calls registerDefaultNetworkCallback, it will always get its own VPN, even if the VPN app called VpnService.Builder#addDisallowedApplication to take itself out of the VPN's UID ranges. Add a test for the current incorrect behaviour. Also fix an indentation error elsewhere. Bug: 195265065 Test: test-only change Change-Id: Id9648ea71fc7ae10855aa311beeb7975569d17f2