summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 00:24:08 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 00:24:08 +0000
commit81a98cdd9ce1bb7d8e893d194e09abfd68024858 (patch)
tree986b726f3c9d016df340ae13ba0fa93a51a9b9ce /net/test
parentbb5310b61786423453cf8580c4287b8f1bf7194f (diff)
downloadchromium_src-81a98cdd9ce1bb7d8e893d194e09abfd68024858.zip
chromium_src-81a98cdd9ce1bb7d8e893d194e09abfd68024858.tar.gz
chromium_src-81a98cdd9ce1bb7d8e893d194e09abfd68024858.tar.bz2
Add a command line option ("host-resolver-retry-attempts")
to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/test_server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index bd24f73..aa704a8 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -192,7 +192,9 @@ bool TestServer::GetAddressList(AddressList* address_list) const {
DCHECK(address_list);
scoped_ptr<HostResolver> resolver(
- CreateSystemHostResolver(HostResolver::kDefaultParallelism, NULL));
+ CreateSystemHostResolver(HostResolver::kDefaultParallelism,
+ HostResolver::kDefaultRetryAttempts,
+ NULL));
HostResolver::RequestInfo info(host_port_pair_);
int rv = resolver->Resolve(info, address_list, NULL, NULL, BoundNetLog());
if (rv != net::OK) {