• Eric Orth's avatar
    Add some flags to mojo DNS API. · 322af3e4
    Eric Orth authored
    Adding include_canonical_name and loopback_only to the optional
    parameters struct.  These will be equivalent to HOST_RESOLVER_CANONNAME
    and HOST_RESOLVER_LOOPBACK_ONLY from the old API.  And at least for now,
    they'll be implemented by converting to the old flags for simple
    compatibility with the current implementation of HostCache::Key.
    
    Added canonical name support to the mojo AddressList as it was missing.
    
    Bug: 821021
    Cq-Include-Trybots: luci.chromium.try:linux_mojo
    Change-Id: I7ff288f05d6a13e1c6c3c293d9f7a1064f011380
    Reviewed-on: https://chromium-review.googlesource.com/1179996
    Commit-Queue: Eric Orth <ericorth@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Reviewed-by: default avatarHelen Li <xunjieli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584500}
    322af3e4
host_resolver_impl_unittest.cc 212 KB