summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2020-08-06 17:12:16 +0000
committerChalard Jean <jchalard@google.com>2020-08-07 06:43:22 +0000
commit002944f78e5cd10f772e9a2b1064bbc2dec3aef5 (patch)
tree410a8c1fe04c8d77d920f1a9918f413328f53fbd /tools/aapt2/java/JavaClassGenerator.cpp
parentc9e026f4e9db93288d1f1aa83970000aa3ad55cb (diff)
Resolve the endpoint in legacy VPN
This adds code to resolve the endpoint in the legacy VPN runner if it was specified as a hostname, and enables the previously added test that was disabled because this was broken until this patch. See the linked bug for details. This patch uses the async DNS API to do the resolution. This lets the resolution be fully cancellable, though the code is more complex than with the non-interruptible getByName. Test: VpnTest and in particular VpnTest#testStartRacoon Fixes the test meant to test this Also manual testing that resolution of a real hostname works as expected, that failure to resolve returns correctly, and that cancellation/interruption will unblock the thread and terminate immediately. Bug: 158974172 Change-Id: I90bec6d85706fa9b2f9a01f81701138a54347005 Merged-In: I96691f6091c43377f23a00621242ed034fcb0444 (cherry picked from commit 8ab570d9c9eb5e52b2c038818e3e4d1d3b98fda0)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions