ContextHostResolver: Make tests not depend on local IPv6 probes.
Now the tests always act like IPv6 support was detected locally, by injecting a bogus cached DNS probe result and mocking out time to prevent it from expiring. Previously, the tests would either do only IPv4 lookups, or IPv6 and IPv4 lookups based on the results of an IPv6 support probe on the local machine. While this didn't have a huge effect on the tests since none test IPv6 support, it did affect one of them which directly depended, and it's generally much better to have tests not behaving differently based on the environment they're running in. Bug: None Change-Id: Ic3f275f059a1cd174fadc9e49c0c43e26ee63252 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899558Reviewed-by:Eric Orth <ericorth@chromium.org> Commit-Queue: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#712776}
Showing
Please register or sign in to comment