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

Unified Diff: net/android/tools/proxy_test_cases.py

Issue 11191047: Upstream Android-specific net/ changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 | « net/android/java/net_errors_java.template ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/tools/proxy_test_cases.py
diff --git a/net/android/tools/proxy_test_cases.py b/net/android/tools/proxy_test_cases.py
index 095090200ad188d719bd017e35249102398c319d..a377767a63efdffc0e3ec71c2d3ffb230130d22b 100755
--- a/net/android/tools/proxy_test_cases.py
+++ b/net/android/tools/proxy_test_cases.py
@@ -174,6 +174,7 @@ test_cases = [
{
"name": "HttpProxyHostIPv6",
"description" : "Test IPv6 https.proxyHost and default port.",
+ "cpp-only" : "",
"properties" : {
"http.proxyHost" : "a:b:c::d:1",
},
@@ -185,6 +186,7 @@ test_cases = [
{
"name": "HttpProxyHostAndPortIPv6",
"description" : "Test IPv6 http.proxyHost and http.proxyPort works.",
+ "cpp-only" : "",
"properties" : {
"http.proxyHost" : "a:b:c::d:1",
"http.proxyPort" : "8080",
@@ -197,6 +199,7 @@ test_cases = [
{
"name": "HttpProxyHostAndInvalidPort",
"description" : "Test invalid http.proxyPort does not crash.",
+ "cpp-only" : "",
"properties" : {
"http.proxyHost" : "a:b:c::d:1",
"http.proxyPort" : "65536",
@@ -302,9 +305,12 @@ class GenerateJava:
def Generate(self):
for test_case in test_cases:
+ if test_case.has_key("cpp-only"):
+ continue
if "description" in test_case:
self._GenerateDescription(test_case["description"]);
print " @SmallTest"
+ print " @Feature({\"Android-WebView\"})"
print " public void test%s() throws Exception {" % test_case["name"]
self._GenerateConfiguration(test_case["properties"])
self._GenerateMappings(test_case["mappings"])
@@ -325,7 +331,10 @@ class GenerateJava:
def _GenerateMappings(self, mappings):
for url in sorted(mappings.iterkeys()):
- print " checkMapping(\"%s\", \"%s\");" % (url, mappings[url])
+ mapping = mappings[url]
+ if 'HTTPS' in mapping:
+ mapping = mapping.replace('HTTPS', 'PROXY')
+ print " checkMapping(\"%s\", \"%s\");" % (url, mapping)
def main():
« no previous file with comments | « net/android/java/net_errors_java.template ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698