repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git]
/
net
/
data
/
proxy_resolver_v8_tracing_unittest
/
global_sideffects2.js
blob
f5e5076a7f82c227a791d2bea0f0f610af9c4a51
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
}