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

Unified Diff: net/data/proxy_resolver_v8_unittest/dns_fail.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/dns_fail.js
diff --git a/net/data/proxy_resolver_v8_unittest/dns_fail.js b/net/data/proxy_resolver_v8_unittest/dns_fail.js
deleted file mode 100644
index c71bcc38304a95d4ace32adf4f7aba6487b8f359..0000000000000000000000000000000000000000
--- a/net/data/proxy_resolver_v8_unittest/dns_fail.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// This script should be run in an environment where all DNS resolution are
-// failing. It tests that functions return the expected values.
-//
-// Returns "PROXY success:80" on success.
-function FindProxyForURL(url, host) {
- try {
- expectEq("127.0.0.1", myIpAddress());
- expectEq("", myIpAddressEx());
-
- expectEq(null, dnsResolve("not-found"));
- expectEq("", dnsResolveEx("not-found"));
-
- expectEq(false, isResolvable("not-found"));
- expectEq(false, isResolvableEx("not-found"));
-
- return "PROXY success:80";
- } catch(e) {
- alert(e);
- return "PROXY failed:80";
- }
-}
-
-function expectEq(expected, actual) {
- if (expected != actual)
- throw "Expected " + expected + " but was " + actual;
-}
-
« no previous file with comments | « net/data/proxy_resolver_v8_unittest/direct.js ('k') | net/data/proxy_resolver_v8_unittest/ends_with_comment.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698