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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/dns.js

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
1 var g_iteration = 0;
2
3 function FindProxyForURL(url, host) {
4 alert('iteration: ' + g_iteration++);
5
6 var ips = [
7 myIpAddress(),
8 dnsResolve(''),
9 dnsResolveEx('host1'),
10 dnsResolve('host2'),
11 dnsResolve('host3'),
12 myIpAddress(),
13 dnsResolve('host3'),
14 dnsResolveEx('host1'),
15 myIpAddress(),
16 dnsResolve('host2'),
17 dnsResolveEx('host6'),
18 myIpAddressEx(),
19 dnsResolve('host1'),
20 ];
21
22 for (var i = 0; i < ips.length; ++i) {
23 // Stringize everything.
24 ips[i] = '' + ips[i];
25 }
26
27 var proxyHost = ips.join('-');
28 proxyHost = proxyHost.replace(/[^0-9a-zA-Z.-]/g, '_');
29
30 return "PROXY " + proxyHost + ":99";
31 }
OLDNEW
« no previous file with comments | « net/data/proxy_resolver_perftest/no-ads.pac ('k') | net/data/proxy_resolver_v8_tracing_unittest/dns_during_init.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698