summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-11-30 16:02:54 +0900
committerLorenzo Colitti <lorenzo@google.com>2020-12-15 21:08:20 +0900
commit4d3a0c24351b36588178fe165dc72bc54a933a26 (patch)
tree5090059e558e06b1e189499b737306ee6ddb934d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc3c6148928d0ac242c0f51b47f1175b52bc1ce16 (diff)
Add tests for always-on VPN lockdown mode.
This requires mocking lots of new things that weren't mocked before but is otherwise fairly straightforward. A few changes to MockVpn are needed as well: 1. Set the VPN's NetworkInfo to CONNECTED, so methods such as isBlockingUid will work. While I'm at it, set the interface on the LinkProperties as well to make things a bit more realistic. 2. Constructs the VpnConfig when registering the agent, not when the MockVpn is created. This is needed because starting and stopping lockdown VPN calls prepare, which nulls out mConfig. But constructing the VpnConfig when registering the agent is more realistic anyway. The production code does that in establish, but we can't do that in ConnectivityServiceTest because some of the test cases don't call establish and call registerAgent directly. Bug: 173331190 Test: atest FrameworksNetTests Change-Id: I827543751dbf5e626a24ec02cd6f50b423f5f761
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions