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

Unified Diff: tests/standalone/io/http_proxy_configuration_test.dart

Issue 15188003: Allow proxy settings in environment variables to be full URLs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_proxy_configuration_test.dart
diff --git a/tests/standalone/io/http_proxy_configuration_test.dart b/tests/standalone/io/http_proxy_configuration_test.dart
index 568b47ca8ea3c593aca04f47c29cc23dde81bf5a..829a080579a932367a937bd0b250dc1420980106 100644
--- a/tests/standalone/io/http_proxy_configuration_test.dart
+++ b/tests/standalone/io/http_proxy_configuration_test.dart
@@ -20,6 +20,7 @@ expectDirect(String uri, environment) {
main() {
expectDirect("http://www.google.com", {});
+
expect("PROXY www.proxy.com:1080",
"http://www.google.com",
{"http_proxy": "www.proxy.com"});
@@ -40,6 +41,36 @@ main() {
"https://www.google.com",
{"http_proxy": "www.proxy.com:8080",
"https_proxy": "www.proxys.com:8080"});
+
+ expect("PROXY www.proxy.com:1080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com"});
+ expect("PROXY www.proxy.com:1080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com/"});
+ expect("PROXY www.proxy.com:8080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/"});
+ expect("PROXY www.proxy.com:8080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/index.html"});
+ expect("PROXY www.proxy.com:8080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/",
+ "https_proxy": "http://www.proxy.com:8080/"});
+ expect("PROXY www.proxys.com:8080",
+ "https://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/",
+ "https_proxy": "http://www.proxys.com:8080/"});
+ expect("PROXY www.proxy.com:8080",
+ "http://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/",
+ "https_proxy": "http://www.proxy.com:8080/index.html"});
+ expect("PROXY www.proxys.com:8080",
+ "https://www.google.com",
+ {"http_proxy": "http://www.proxy.com:8080/",
+ "https_proxy": "http://www.proxys.com:8080/index.html"});
+
expectDirect("http://www.google.com",
{"http_proxy": "www.proxy.com:8080",
"no_proxy": "www.google.com"});
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698