Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 86 for mutableListOf (0.21 sec)

  1. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

            .build()
        assertEquals(
          listOf(Protocol.HTTP_1_1),
          client.protocols,
        )
      }
    
      @Test fun nullProtocolInList() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            null,
          )
        assertFailsWith<IllegalArgumentException> {
          OkHttpClient.Builder()
            .protocols(protocols as List<Protocol>)
        }.also { expected ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        // appendCodePoint(). The Punycode algorithm processes code points in increasing code-point
        // order, not in increasing index order.
        val codePoints = mutableListOf<Int>()
    
        // consume all code points before the last delimiter (if there is one)
        //  and copy them to output, fail on any non-basic code point
        val lastDelimiter = string.lastIndexOf('-', limit)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 03:04:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/configurations/FunctionalTest.kt

        this.name = name
        this.description = description
        this.id(id)
        val testTasks = getTestTaskName(testCoverage, subprojects)
    
        val assembledExtraParameters = mutableListOf(
            stage.getBuildScanCustomValueParam(testCoverage),
            functionalTestExtraParameters(listOf(functionalTestTag), testCoverage.os, testCoverage.arch, testCoverage.testJvmVersion.major.toString(), testCoverage.vendor.name),
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Sep 25 06:14:43 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

       * also demonstrates how sparse the lookup table is.
       */
      @Test
      fun allFormattedFlagsWithValidBits() {
        val formattedFlags = mutableListOf<String>() // Highest valid flag is 0x20.
        for (i in 0..0x3f) formattedFlags.add(formatFlags(TYPE_HEADERS, i))
        assertThat(formattedFlags).containsExactly(
          "",
          "END_STREAM",
          "00000010",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

      private val queue = taskRunner.newQueue()
    
      @AfterEach fun tearDown() {
        backend.shutdown()
      }
    
      @Test fun test() {
        val t1 = System.nanoTime() / 1e6
    
        val delays = mutableListOf(TimeUnit.MILLISECONDS.toNanos(1000), -1L)
        queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(750)) {
          log.put("runOnce delays.size=${delays.size}")
          return@schedule delays.removeAt(0)
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

              val parameters = sslSocket.sslParameters
              val sni = parameters.serverNames
              Log.d("CustomSSLSocketFactory", "old SNI: $sni")
              parameters.serverNames = mutableListOf<SNIServerName>(SNIHostName("cloudflare-dns.com"))
              sslSocket.sslParameters = parameters
            }
    
            return sslSocket
          }
        }
    
        client =
          client.newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private var limit = -1L
    
      /** Type hints scoped to the call stack, manipulated with [withTypeHint]. */
      private val typeHintStack = mutableListOf<Any?>()
    
      /**
       * The type hint for the current object. Used to pick adapters based on other fields, such as
       * in extensions which have different types depending on their extension ID.
       */
      var typeHint: Any?
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt

            val ret = mutableMapOf<String, MutableList<String>>()
            properties.load(StringReader(content))
            properties.forEach { key, value ->
                val list = ret.getOrDefault(value, mutableListOf())
                list.add(key!!.toString())
                ret[value!!.toString()] = list
            }
            return ret
        }
    
    
        interface BuildBucketProvider {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

     *
     * ```
     * WWW-Authenticate: Digest ,foo=bar
     * WWW-Authenticate: Digest ,foo
     * ```
     */
    fun Headers.parseChallenges(headerName: String): List<Challenge> {
      val result = mutableListOf<Challenge>()
      for (h in 0 until size) {
        if (headerName.equals(name(h), ignoreCase = true)) {
          val header = Buffer().writeUtf8(value(h))
          try {
            header.readChallengeHeader(result)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

        private
        val implementation = PackageListGenerator.Implementation(DEFAULT_EXCLUDES_FOR_TEST, DEFAULT_INCLUDES_FOR_TEST)
    
        private
        fun getRelocatedPackages(files: Sequence<Path>): List<String> = mutableListOf<String>().apply {
            implementation.collectPackages(files.toList()).dump(false, this::add)
        }
    
        @Test
        fun `generates a curated list of package prefixes from directories`() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 19:14:16 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top