Home | History | Annotate | Download | only in proxy_resolver_v8_tracing_unittest
      1 var g_iteration = 0;
      2 
      3 function FindProxyForURL(url, host) {
      4   g_iteration++;
      5 
      6   var ips;
      7 
      8   if (g_iteration < 3) {
      9     ips = [
     10       dnsResolve('host1'),
     11       dnsResolve('host2')
     12     ];
     13   } else {
     14     ips = [ dnsResolve('host' + g_iteration) ];
     15   }
     16 
     17   return 'PROXY ' + ips.join('-') + ':100';
     18 }
     19