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
The more realistic behaviour exposes a minor bug in the treatment
of underlying networks. Add a TODO to fix it.
Test: test-only change
(cherry picked from commit 9ededd8476680d40b0b0d5b21e3a4bc0d743adae)
2 files changed