Lines Matching refs:resolver
197 // |resolver|.
200 explicit ForwardingProxyResolverFactory(ProxyResolver* resolver)
201 : ProxyResolverFactory(resolver->expects_pac_bytes()),
202 resolver_(resolver) {}
222 BlockableProxyResolver* resolver = new BlockableProxyResolver;
223 resolvers_.push_back(resolver);
224 return new ForwardingProxyResolver(resolver);
238 MultiThreadedProxyResolver resolver(
243 EXPECT_TRUE(resolver.expects_pac_bytes());
246 // resolver.
248 rv = resolver.SetPacScript(
260 rv = resolver.GetProxyForURL(
269 // The mock proxy resolver should have written 1 log entry. And
283 rv = resolver.GetProxyForURL(
289 rv = resolver.GetProxyForURL(
295 rv = resolver.GetProxyForURL(
314 // Ensure that PurgeMemory() reaches the wrapped resolver and happens on the
317 resolver.PurgeMemory();
322 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("dummy"),
334 MultiThreadedProxyResolver resolver(
339 // Initialize the resolver.
341 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("foo"),
345 // Block the proxy resolver, so no request can complete.
353 rv = resolver.GetProxyForURL(
362 rv = resolver.GetProxyForURL(
370 rv = resolver.GetProxyForURL(
380 // 1 entry from the mock proxy resolver.
427 MultiThreadedProxyResolver resolver(
433 // Initialize the resolver.
435 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("foo"),
439 // Block the proxy resolver, so no request can complete.
446 rv = resolver.GetProxyForURL(
457 rv = resolver.GetProxyForURL(
464 rv = resolver.GetProxyForURL(
470 rv = resolver.GetProxyForURL(
475 resolver.CancelRequest(request0);
476 resolver.CancelRequest(request2);
488 // Note that since request2 was cancelled before reaching the resolver,
504 scoped_ptr<MultiThreadedProxyResolver> resolver(
510 // Initialize the resolver.
512 rv = resolver->SetPacScript(ProxyResolverScriptData::FromUTF8("foo"),
516 // Block the proxy resolver, so no request can complete.
523 rv = resolver->GetProxyForURL(
529 rv = resolver->GetProxyForURL(
535 rv = resolver->GetProxyForURL(
552 resolver.reset();
567 MultiThreadedProxyResolver resolver(
573 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("data"),
578 resolver.CancelSetPacScript();
582 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("data2"),
601 MultiThreadedProxyResolver resolver(factory, kNumThreads);
605 EXPECT_TRUE(resolver.expects_pac_bytes());
608 // resolver.
610 rv = resolver.SetPacScript(
627 rv = resolver.GetProxyForURL(
646 rv = resolver.GetProxyForURL(
659 resolver.CancelRequest(request[1]);
660 resolver.CancelRequest(request[3]);
661 resolver.CancelRequest(request[6]);
679 rv = resolver.SetPacScript(ProxyResolverScriptData::FromUTF8("xyz"),
714 MultiThreadedProxyResolver resolver(factory, kNumThreads);
718 EXPECT_TRUE(resolver.expects_pac_bytes());
720 // Initialize the resolver.
722 rv = resolver.SetPacScript(
741 rv = resolver.GetProxyForURL(
752 rv = resolver.GetProxyForURL(