From 40f153572764e76066588fd2e358d05b8fa453bb Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Sat, 18 Jul 2009 08:02:08 +0000 Subject: Use manually constructed IPv6 socket addresses for tests, rather than system created ones. The advantage is that GURL's parsing of IPv6 addresses works on all systems, whereas getaddrinfo(ipv6_literal) only succeeds on IPv6 enabled systems. This allows the tests to run consistently on all systems, including our own WinXP buildbots (which do not support IPv6). BUG=http://crbug.com/16452 TEST=[net_unittests] SOCKS5ClientSocketTest.IPv6Domain, SOCKSClientSocketTest.SOCKS4AIfDomainInIPv6 Review URL: http://codereview.chromium.org/155618 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21053 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/socks_client_socket_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/socket/socks_client_socket_unittest.cc') diff --git a/net/socket/socks_client_socket_unittest.cc b/net/socket/socks_client_socket_unittest.cc index 3d7fa85..32eb725 100644 --- a/net/socket/socks_client_socket_unittest.cc +++ b/net/socket/socks_client_socket_unittest.cc @@ -253,7 +253,7 @@ TEST_F(SOCKSClientSocketTest, SOCKS4AFailedDNS) { TEST_F(SOCKSClientSocketTest, SOCKS4AIfDomainInIPv6) { const char hostname[] = "an.ipv6.address"; - host_resolver_->rules()->AddRule(hostname, "2001:db8:8714:3a90::12"); + host_resolver_->rules()->AddIPv6Rule(hostname, "2001:db8:8714:3a90::12"); std::string request(kSOCKS4aInitialRequest, arraysize(kSOCKS4aInitialRequest)); -- cgit v1.1