Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: net/test/test_server.cc

Issue 3119027: Adds HostResolveImpl Requests and Jobs to log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/tcp_pinger_unittest.cc ('k') | net/tools/fetch/fetch_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/test/test_server.h" 5 #include "net/test/test_server.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 default: 175 default:
176 NOTREACHED(); 176 NOTREACHED();
177 } 177 }
178 return std::string(); 178 return std::string();
179 } 179 }
180 180
181 bool TestServer::GetAddressList(AddressList* address_list) const { 181 bool TestServer::GetAddressList(AddressList* address_list) const {
182 DCHECK(address_list); 182 DCHECK(address_list);
183 183
184 scoped_refptr<HostResolver> resolver( 184 scoped_refptr<HostResolver> resolver(
185 CreateSystemHostResolver(HostResolver::kDefaultParallelism)); 185 CreateSystemHostResolver(HostResolver::kDefaultParallelism, NULL));
186 HostResolver::RequestInfo info(host_port_pair_.host(), 186 HostResolver::RequestInfo info(host_port_pair_.host(),
187 host_port_pair_.port()); 187 host_port_pair_.port());
188 int rv = resolver->Resolve(info, address_list, NULL, NULL, BoundNetLog()); 188 int rv = resolver->Resolve(info, address_list, NULL, NULL, BoundNetLog());
189 if (rv != net::OK) { 189 if (rv != net::OK) {
190 LOG(ERROR) << "Failed to resolve hostname: " << host_port_pair_.host(); 190 LOG(ERROR) << "Failed to resolve hostname: " << host_port_pair_.host();
191 return false; 191 return false;
192 } 192 }
193 return true; 193 return true;
194 } 194 }
195 195
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return certificates_dir_.AppendASCII("ok_cert.pem"); 292 return certificates_dir_.AppendASCII("ok_cert.pem");
293 case TYPE_HTTPS_EXPIRED_CERTIFICATE: 293 case TYPE_HTTPS_EXPIRED_CERTIFICATE:
294 return certificates_dir_.AppendASCII("expired_cert.pem"); 294 return certificates_dir_.AppendASCII("expired_cert.pem");
295 default: 295 default:
296 NOTREACHED(); 296 NOTREACHED();
297 } 297 }
298 return FilePath(); 298 return FilePath();
299 } 299 }
300 300
301 } // namespace net 301 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/tcp_pinger_unittest.cc ('k') | net/tools/fetch/fetch_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698