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

Side by Side Diff: net/data/proxy_resolver_v8_unittest/simple.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 // PAC script which uses isInNet on both IP addresses and hosts, and calls
2 // isResolvable().
3
4 function FindProxyForURL(url, host) {
5 var my_ip = myIpAddress();
6
7 if (isInNet(my_ip, "172.16.0.0", "255.248.0.0")) {
8 return "PROXY a:80";
9 }
10
11 if (url.substring(0, 6) != "https:" &&
12 isInNet(host, "10.0.0.0", "255.0.0.0")) {
13 return "PROXY b:80";
14 }
15
16 if (dnsDomainIs(host, "foo.bar.baz.com") || !isResolvable(host)) {
17 return "PROXY c:100";
18 }
19
20 return "DIRECT";
21 }
OLDNEW
« no previous file with comments | « net/data/proxy_resolver_v8_unittest/side_effects.js ('k') | net/data/proxy_resolver_v8_unittest/terminate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698