HttpsURLConnectionTest rewrite and URLConnectionTest updates
Rewrote HttpsURLConnectionTest to work with current SSLSocket implementation which more strictly follows RI behavior. Also made upates to URLConnectionTest related to HttpsURLConnection - changed assertContent call connect() explictly to illustrate problem with https proxy case also seen by HttpsURLConnectionTest - Rewrote testConnectTimeouts to work reliably. Before if often worked on WiFi but not on mobile networks where a "HTTP/1.1 501 Bad Gateway" would be seen causing a FileNotFoundException. - Changed testConnectViaHttpProxyToHttpsUsingHttpProxySystemProperty to match expectation that https does not use the http.proxyHost values. Added new testConnectViaHttpProxyToHttpsUsingProxyArgWithNoProxy which should have the same behavior as the fixed testConnectViaHttpProxyToHttpsUsingHttpProxySystemProperty Change-Id: I397f55905524e2bbb587533f258ef0418ca8af80
Loading
Please sign in to comment