Expose in url_canon_ip.h the previously internal-only functions:
commit10af7c656cc4407fc5c218ef704e0b85bc8868b8
authoreroman@chromium.org <eroman@chromium.org@8873c55e-713a-0410-88f8-23d9c3d90b1b>
Wed, 15 Jul 2009 23:36:27 +0000 (15 23:36 +0000)
committereroman@chromium.org <eroman@chromium.org@8873c55e-713a-0410-88f8-23d9c3d90b1b>
Wed, 15 Jul 2009 23:36:27 +0000 (15 23:36 +0000)
tree0df9404f6e9a5abba7e8b375d18a9244614d8977
parentc98e880dde913e8d61f4d7696e9610b50e737c3a
Expose in url_canon_ip.h the previously internal-only functions:

 url_canon::IPv4AddressToNumber()
 url_canon::IPv6AddressToNumber()

Motivation:

I would like to use url_canon::IPv6AddressToNumber() in some chromium
network tests, to create mock IPv6 socketaddrs.

The system-provided equivalents (like getaddrinfo() or inet_ntop()) are
unreliable for this purpose, since they only work on IPv6-enabled
machines.

BUG=NONE
TEST=NONE
R=brettw

git-svn-id: http://google-url.googlecode.com/svn/trunk@110 8873c55e-713a-0410-88f8-23d9c3d90b1b
src/url_canon_ip.cc
src/url_canon_ip.h