summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsCollectionTest.java
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2022-04-21 09:03:35 +0000
committerMartijn Coenen <maco@google.com>2022-05-12 12:11:45 +0000
commitc0cf5a9bac6e946271394490e038eb3af44091df (patch)
treecd05e40294021176c8f901ca718f5a1f4d29108d /tests/unit/java/android/net/NetworkStatsCollectionTest.java
parentd5ed8356e30219e92cf4245cf546c8d12e2290c5 (diff)
Modify VPN unit tests to include SDK sandbox UIDs.
VPN configurations in T should automatically include the corresponding SDK sandbox UID of an application. The existing tests used a UID range outside the regular application range, which means the new sandbox UIDs wouldn't be tested. Modified the UIDs to run in the regular UID range of [10000, 19999]. Changed the tests to include the SDK sandbox UID where necessary. Also, changed the entire class to only run on T+, since that is the only place where the SDK sandbox UIDs will be added. Since VPN code is not mainline updatable, having coverage on earlier releases doesn't really help anyway. Finally, fixed up testNetworkBlockedStatusAlwaysOnVpn() in ConnectivityServiceTest, and only have that run on T+ for the same reasons. Bug: 225317905 Test: atest VpnTest Test: atest ConnectivityServiceTest Change-Id: I83009344c270e520ac8ad1558c067cf7e46b1d2e Merged-In: I83009344c270e520ac8ad1558c067cf7e46b1d2e
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsCollectionTest.java')
0 files changed, 0 insertions, 0 deletions