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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/data/proxy_resolver_v8_unittest/simple.js
diff --git a/net/data/proxy_resolver_v8_unittest/simple.js b/net/data/proxy_resolver_v8_unittest/simple.js
deleted file mode 100644
index c5dfa6d6f560cb8585db8044c10c4ccf2a92b92b..0000000000000000000000000000000000000000
--- a/net/data/proxy_resolver_v8_unittest/simple.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// PAC script which uses isInNet on both IP addresses and hosts, and calls
-// isResolvable().
-
-function FindProxyForURL(url, host) {
- var my_ip = myIpAddress();
-
- if (isInNet(my_ip, "172.16.0.0", "255.248.0.0")) {
- return "PROXY a:80";
- }
-
- if (url.substring(0, 6) != "https:" &&
- isInNet(host, "10.0.0.0", "255.0.0.0")) {
- return "PROXY b:80";
- }
-
- if (dnsDomainIs(host, "foo.bar.baz.com") || !isResolvable(host)) {
- return "PROXY c:100";
- }
-
- return "DIRECT";
-}
« 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