Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newAddress (0.1 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

            byteArrayOf(1, 2, 3, 4),
          )
        assertThat(
          Route(
            factory.newAddress(uriHost = "1.2.3.4", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("1.2.3.4:1003")
        assertThat(
          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
            Proxy.NO_PROXY,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/AddressTest.kt

      }
    
      @Test fun equalsAndHashcode() {
        val a = factory.newAddress()
        val b = factory.newAddress()
        assertThat(b).isEqualTo(a)
        assertThat(b.hashCode()).isEqualTo(a.hashCode())
      }
    
      @Test fun differentProxySelectorsAreDifferent() {
        val a = factory.newAddress(proxySelector = RecordingProxySelector())
        val b = factory.newAddress(proxySelector = RecordingProxySelector())
        assertThat(b).isNotEqualTo(a)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

                connectionUser = user,
              ),
              taskRunner,
            )
          },
        )
      }
    
      /** Returns an address that's without an SSL socket factory or hostname verifier.  */
      fun newAddress(
        uriHost: String = this.uriHost,
        uriPort: Int = this.uriPort,
        proxy: Proxy? = null,
        proxySelector: ProxySelector = this.proxySelector,
      ): Address {
        return Address(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

      /** The fake task runner prevents the cleanup runnable from being started.  */
      private val addressA = factory.newAddress("a")
      private val routeA1 = factory.newRoute(addressA)
      private val addressB = factory.newAddress("b")
      private val routeB1 = factory.newRoute(addressB)
      private val addressC = factory.newAddress("c")
      private val routeC1 = factory.newRoute(addressC)
    
      @AfterEach fun tearDown() {
        factory.close()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jun 22 16:06:35 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

      private var nextPlanId = 0
      private var nextPlanIndex = 0
      val plans = mutableListOf<FakePlan>()
    
      override val deferredPlans = ArrayDeque<RoutePlanner.Plan>()
    
      override val address = factory.newAddress("example.com")
    
      fun addPlan(): FakePlan {
        return FakePlan(nextPlanId++).also {
          plans += it
        }
      }
    
      override fun isCanceled() = canceled
    
      override fun plan(): FakePlan {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

    class KotlinDeprecationErrorTest {
      private val factory = TestValueFactory()
    
      @AfterEach
      fun tearDown() {
        factory.close()
      }
    
      @Test @Disabled
      fun address() {
        val address: Address = factory.newAddress()
        val url: HttpUrl = address.url()
        val dns: Dns = address.dns()
        val socketFactory: SocketFactory = address.socketFactory()
        val proxyAuthenticator: Authenticator = address.proxyAuthenticator()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      @BeforeEach
      fun disabled() {
        assumeFalse(true)
      }
    
      @AfterEach
      fun tearDown() {
        factory.close()
      }
    
      @Test
      fun address() {
        val address: Address = factory.newAddress()
        val url: HttpUrl = address.url
        val dns: Dns = address.dns
        val socketFactory: SocketFactory = address.socketFactory
        val proxyAuthenticator: Authenticator = address.proxyAuthenticator
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top