Home
last modified time | relevance | path

Searched refs:SOCKS (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldProxyTest.java28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); in test_address()
32 new Proxy(Proxy.Type.SOCKS, null); in test_address()
46 new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()
47 Proxy proxy4 = new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()
54 Proxy proxy5 = new Proxy(Proxy.Type.SOCKS, address1); in test_hashCode()
55 Proxy proxy6 = new Proxy(Proxy.Type.SOCKS, address2); in test_hashCode()
64 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_type()
65 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_type()
DProxySelectorTest.java150 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()
152 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()
154 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()
156 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1080))), in testSocksProxyHost()
164 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()
166 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()
168 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()
170 assertEquals(Arrays.asList(new Proxy(Proxy.Type.SOCKS, createUnresolved("a", 1001))), in testSocksProxyHostAndPort()
DOldSocketTest.java888 Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 0)); in test_bindLjava_net_SocketAddress_Proxy()
2016 Proxy proxy2 = new Proxy(Proxy.Type.SOCKS, addr1); in test_ConstructorLjava_net_Proxy_Exception()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxyTest.java38 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
39 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
62 proxy = new Proxy(Proxy.Type.SOCKS, null); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()
117 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_toString()
134 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_toString()
152 Proxy proxy3 = new Proxy(Proxy.Type.SOCKS, address1); in test_equalsLjava_lang_Object_Equals()
153 Proxy proxy4 = new Proxy(Proxy.Type.SOCKS, address2); in test_equalsLjava_lang_Object_Equals()
172 new Proxy(Proxy.Type.SOCKS, address1), in test_equalsLjava_lang_Object_NotEquals()
173 new Proxy(Proxy.Type.SOCKS, address2), Proxy.NO_PROXY, in test_equalsLjava_lang_Object_NotEquals()
191 assertEquals(Proxy.Type.SOCKS, Proxy.Type.valueOf("SOCKS")); in test_Type_valueOfLjava_lang_String_Normal()
[all …]
DProxySelectorTest.java139 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
183 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
233 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
267 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_InvalidPort()
321 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectLikeHTTP()
358 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectLikeHTTPS()
395 assertProxyEquals(proxyList, Proxy.Type.SOCKS, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT); in test_selectLjava_net_URI_SelectLikeFTP()
DSocketTest.java245 Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress( in test_bindLjava_net_SocketAddress_Proxy()
641 Proxy proxy2 = new Proxy(Proxy.Type.SOCKS, addr1); in test_ConstructorLjava_net_Proxy_Exception()
/libcore/luni/src/main/java/java/net/
DProxy.java175 SOCKS enumConstant
DProxySelectorImpl.java82 proxy = lookupProxy("socksProxyHost", "socksProxyPort", Proxy.Type.SOCKS, 1080); in selectOneProxy()
DPlainSocketImpl.java111 return proxy != null && proxy.type() == Proxy.Type.SOCKS; in usingSocks()
DSocket.java601 return proxy != null && proxy.type() == Proxy.Type.SOCKS; in usingSocks()