diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 23:26:51 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 23:26:51 +0000 |
commit | de114d6a8a223904bc5988c36c22518dd59e1b3a (patch) | |
tree | c5f21c96501172b8dd9dc3a7871ae89fa16cacdc /net/base/host_resolver_impl_unittest.cc | |
parent | 4067f4a5f0c7ace27a9631cfbf261e42e1ecc8e6 (diff) | |
download | chromium_src-de114d6a8a223904bc5988c36c22518dd59e1b3a.zip chromium_src-de114d6a8a223904bc5988c36c22518dd59e1b3a.tar.gz chromium_src-de114d6a8a223904bc5988c36c22518dd59e1b3a.tar.bz2 |
Don't resolve IP literals.
For each resolution request this checks to see if this 'host' is a literal ip address. If so, it synthesises a struct addrinfo and returns it without adding it to the cache.
BUG=39830
TEST=unit tests, new and old
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56384
Review URL: http://codereview.chromium.org/3023048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver_impl_unittest.cc')
-rw-r--r-- | net/base/host_resolver_impl_unittest.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/base/host_resolver_impl_unittest.cc b/net/base/host_resolver_impl_unittest.cc index be0e2cb..a3b863d 100644 --- a/net/base/host_resolver_impl_unittest.cc +++ b/net/base/host_resolver_impl_unittest.cc @@ -399,11 +399,6 @@ TEST_F(HostResolverImplTest, NumericIPv6Address) { const int kPortnum = 5555; HostResolver::RequestInfo info("2001:db8::1", kPortnum); int err = host_resolver->Resolve(info, &adrlist, NULL, NULL, BoundNetLog()); - // On computers without IPv6 support, getaddrinfo cannot convert IPv6 - // address literals to addresses (getaddrinfo returns EAI_NONAME). So this - // test has to allow host_resolver->Resolve to fail. - if (err == ERR_NAME_NOT_RESOLVED) - return; EXPECT_EQ(OK, err); const struct addrinfo* ainfo = adrlist.head(); |