diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-16 19:42:46 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-16 19:42:46 +0000 |
commit | 2152600d98b5c802fec1caba84ae9d0cb16af235 (patch) | |
tree | 37be46839818f20cfefecf2a284e9352ead55bb8 /chrome/test/unit | |
parent | a643d62e025c82ad920117e833508f5def0d1deb (diff) | |
download | chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.zip chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.gz chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.bz2 |
Log the OS error that getaddrinfo() failed with.
- Display it on the about:net-internals page
- Collect it in the histogram Net.OSErrorsForGetAddrinfo.
Review URL: http://codereview.chromium.org/2134004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/unit')
-rw-r--r-- | chrome/test/unit/chrome_test_suite.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h index 99747f8..9defe5b 100644 --- a/chrome/test/unit/chrome_test_suite.h +++ b/chrome/test/unit/chrome_test_suite.h @@ -55,7 +55,8 @@ class WarningHostResolverProc : public net::HostResolverProc { virtual int Resolve(const std::string& host, net::AddressFamily address_family, net::HostResolverFlags host_resolver_flags, - net::AddressList* addrlist) { + net::AddressList* addrlist, + int* os_error) { const char* kLocalHostNames[] = {"localhost", "127.0.0.1"}; bool local = false; @@ -75,7 +76,7 @@ class WarningHostResolverProc : public net::HostResolverProc { EXPECT_TRUE(local) << "Making external DNS lookup of " << host; return ResolveUsingPrevious(host, address_family, host_resolver_flags, - addrlist); + addrlist, os_error); } }; |