RouteSelectorTest.java | 18 import com.squareup.okhttp.Address; 79 Address address = new Address(uriHost, uriPort, null, null, null); local 80 RouteSelector routeSelector = new RouteSelector(address, uri, proxySelector, pool, dns); 84 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 96 Address address = new Address(uriHost, uriPort, null, null, proxyA); local 97 RouteSelector routeSelector = new RouteSelector(address, uri, proxySelector, pool, dns) 101 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, local 103 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[1], proxyAPort, local 112 Address address = new Address(uriHost, uriPort, null, null, NO_PROXY); local 117 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 118 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[1], uriPort, false); local 126 Address address = new Address(uriHost, uriPort, null, null, null); local 134 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 141 Address address = new Address(uriHost, uriPort, null, null, null); local 146 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 147 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[1], uriPort, false); local 155 Address address = new Address(uriHost, uriPort, null, null, null); local 165 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, local 167 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[1], proxyAPort, local 174 assertConnection(routeSelector.next(), address, proxyB, dns.inetAddresses[0], proxyBPort, local 181 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 188 Address address = new Address(uriHost, uriPort, null, null, null); local 197 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 204 Address address = new Address(uriHost, uriPort, null, null, null); local 214 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, local 229 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, local 235 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 242 Address address = local 248 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, true); local 252 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 259 Address address = new Address(uriHost, uriPort, socketFactory, hostnameVerifier, null); local 266 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, true); local 268 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort, local 270 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[1], proxyAPort, true); local 271 assertConnection(routeSelector.next(), address, proxyA, dns.inetAddresses[1], proxyAPort, local 276 assertConnection(routeSelector.next(), address, proxyB, dns.inetAddresses[0], proxyBPort, true); local 278 assertConnection(routeSelector.next(), address, proxyB, dns.inetAddresses[0], proxyBPort, local 280 assertConnection(routeSelector.next(), address, proxyB, dns.inetAddresses[1], proxyBPort, true); local 281 assertConnection(routeSelector.next(), address, proxyB, dns.inetAddresses[1], proxyBPort, local 286 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, true); local 288 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort, false); local 289 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[1], uriPort, true); local 290 assertConnection(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[1], uriPort, false); local [all...] |