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

Unified Diff: net/proxy/proxy_resolver_js_bindings_unittest.cc

Issue 9121055: Add a source to V8 proxy resolver-initiated DNS requests, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update year Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings.cc ('k') | net/proxy/proxy_resolver_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_js_bindings_unittest.cc
===================================================================
--- net/proxy/proxy_resolver_js_bindings_unittest.cc (revision 118864)
+++ net/proxy/proxy_resolver_js_bindings_unittest.cc (working copy)
@@ -33,7 +33,8 @@
public:
// HostResolver methods:
virtual int Resolve(const HostResolver::RequestInfo& info,
- AddressList* addresses) OVERRIDE {
+ AddressList* addresses,
+ const net::BoundNetLog& bound_net_log) OVERRIDE {
return ParseAddressList("192.168.1.1,172.22.34.1,200.100.1.2", "",
addresses);
}
@@ -50,7 +51,8 @@
// HostResolver methods:
virtual int Resolve(const HostResolver::RequestInfo& info,
- AddressList* addresses) OVERRIDE {
+ AddressList* addresses,
+ const net::BoundNetLog& bound_net_log) OVERRIDE {
count_++;
return ERR_NAME_NOT_RESOLVED;
}
@@ -72,9 +74,10 @@
}
virtual int Resolve(const HostResolver::RequestInfo& info,
- AddressList* addresses) OVERRIDE {
+ AddressList* addresses,
+ const net::BoundNetLog& bound_net_log) OVERRIDE {
return resolver_.Resolve(info, addresses, CompletionCallback(), NULL,
- BoundNetLog());
+ bound_net_log);
}
virtual void Shutdown() OVERRIDE {}
@@ -164,11 +167,11 @@
// depending if the address family was IPV4_ONLY or not.
HostResolver::RequestInfo info(HostPortPair("foo", 80));
AddressList address_list;
- EXPECT_EQ(OK, host_resolver->Resolve(info, &address_list));
+ EXPECT_EQ(OK, host_resolver->Resolve(info, &address_list, BoundNetLog()));
EXPECT_EQ("192.168.2.1", NetAddressToString(address_list.head()));
info.set_address_family(ADDRESS_FAMILY_IPV4);
- EXPECT_EQ(OK, host_resolver->Resolve(info, &address_list));
+ EXPECT_EQ(OK, host_resolver->Resolve(info, &address_list, BoundNetLog()));
EXPECT_EQ("192.168.1.1", NetAddressToString(address_list.head()));
std::string ip_address;
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings.cc ('k') | net/proxy/proxy_resolver_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698