• Matt Menke's avatar
    ContextHostResolver: Make tests not depend on local IPv6 probes. · d150cbe6
    Matt Menke authored
    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: default avatarEric Orth <ericorth@chromium.org>
    Commit-Queue: Matt Menke <mmenke@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#712776}
    d150cbe6
host_resolver_manager.h 21.1 KB