android_packages_modules_Co.../tests/net/java/com/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti 4b615c01e5 Simplify MockVpn.
This CL removes four methods in MockVpn by slightly changing the
test code to leverage the actual methods implemented by the
(production) Vpn superclass.

This works because setting mInterface results in
isRunningLocked() returning true, which makes a number of methods
behave as if the VPN is connected (which is what the test
expects).

The more realistic behaviour exposes a minor bug in the treatment
of underlying networks. Add a TODO to fix it.

Bug: 172870110
Test: test-only change
Change-Id: I49421183538ba61ca790af71e309ece36b653bf9
Merged-In: I49421183538ba61ca790af71e309ece36b653bf9
2021-01-28 19:43:58 +09:00
..
internal Add methods for IKEv2/IPsec test mode profiles 2020-05-16 00:15:14 +00:00
server Simplify MockVpn. 2021-01-28 19:43:58 +09:00