Home
last modified time | relevance | path

Searched refs:HTTP (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxyTest.java33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
34 assertEquals(Proxy.Type.HTTP, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
55 proxy = new Proxy(Proxy.Type.HTTP, null); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()
111 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_toString()
132 proxy = new Proxy(Proxy.Type.HTTP, address); in test_toString()
145 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1); in test_equalsLjava_lang_Object_Equals()
146 Proxy proxy2 = new Proxy(Proxy.Type.HTTP, address2); in test_equalsLjava_lang_Object_Equals()
170 Proxy proxy[] = { new Proxy(Proxy.Type.HTTP, address1), in test_equalsLjava_lang_Object_NotEquals()
171 new Proxy(Proxy.Type.HTTP, address2), in test_equalsLjava_lang_Object_NotEquals()
190 assertEquals(Proxy.Type.HTTP, Proxy.Type.valueOf("HTTP")); in test_Type_valueOfLjava_lang_String_Normal()
[all …]
DProxySelectorTest.java130 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, HTTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
133 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTPS_PROXY_HOST, HTTPS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
136 assertProxyEquals(proxyList, Proxy.Type.HTTP, FTP_PROXY_HOST, FTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
171 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
175 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTPS_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
179 assertProxyEquals(proxyList, Proxy.Type.HTTP, FTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
204 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
224 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, HTTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
227 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTPS_PROXY_HOST, HTTPS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
230 assertProxyEquals(proxyList, Proxy.Type.HTTP, FTP_PROXY_HOST, FTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
[all …]
DSocketTest.java636 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, addr1); in test_ConstructorLjava_net_Proxy_Exception()
/libcore/luni/src/test/java/libcore/java/net/
DProxySelectorTest.java79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testProxyHostOnly()
81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), in testProxyHostOnly()
83 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 443))), in testProxyHostOnly()
100 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 1001))), in testProxyHostPort()
102 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 1002))), in testProxyHostPort()
104 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 1003))), in testProxyHostPort()
131 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testProxyHost()
133 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testProxyHost()
135 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 443))), in testProxyHost()
144 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testHttpProxyHostPreferredOverProxyHost()
[all …]
DOldProxyTest.java42 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1); in test_hashCode()
43 Proxy proxy2 = new Proxy(Proxy.Type.HTTP, address1); in test_hashCode()
61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_type()
62 assertEquals(Proxy.Type.HTTP, proxy.type()); in test_type()
DFtpURLConnectionTest.java158 assertEquals(Proxy.Type.HTTP, proxy.type()); in testCountingProxy()
397 proxy = new Proxy(Proxy.Type.HTTP, socketAddress); in CountingProxy()
DOldSocketTest.java1898 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, addr1); in test_ConstructorLjava_net_Proxy_Exception()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java144 proxy = new Proxy(Proxy.Type.HTTP, in select()
194 .openConnection(new Proxy(Proxy.Type.HTTP, in testUsingProxy()
288 new Proxy(Proxy.Type.HTTP, in testProxyAuthorization()
/libcore/ojluni/annotations/hiddenapi/java/net/
DProxy.java75 HTTP, enumConstant
/libcore/ojluni/src/main/java/java/net/
DProxy.java53 HTTP, enumConstant
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java410 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyConnection()
459 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyAuthConnection()
493 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testConsequentProxyConnection()
508 new Proxy(Proxy.Type.HTTP, proxyAddress2)); in testConsequentProxyConnection()
565 proxyUrl.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyAuthConnection_doOutput()
601 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyAuthConnectionFailed()
643 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyConnection_Not_Found_Response()
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java321 return new Proxy(Proxy.Type.HTTP, saddr); in select()
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java250 if (p.type() != Proxy.Type.HTTP || in connect()
/libcore/expectations/
Dknownfailures.txt1687 …description: "Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP
1693 …description: "Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP