Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for listOf (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/InetAddressOrderTest.kt

        assertThat(result).isEqualTo(
          listOf(ipv6_ab),
        )
      }
    
      @Test fun singleIpv4() {
        val result = reorderForHappyEyeballs(listOf(ipv4_10_0_0_6))
    
        assertThat(result).isEqualTo(
          listOf(ipv4_10_0_0_6),
        )
      }
    
      @Test fun prioritiseIpv6() {
        val result = reorderForHappyEyeballs(listOf(ipv4_10_0_0_6, ipv6_ab))
    
        assertThat(result).isEqualTo(
          listOf(ipv6_ab, ipv4_10_0_0_6),
        )
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

     */
    val QUICK_CROSS_VERSION_BUCKETS =
        listOf(
            listOf("0.0", "3.0"), // 0.0 <= version < 3.0
            listOf("3.0", "4.0"), // 3.0 <= version < 4.0
            listOf("4.0", "5.0"), // 4.0 <= version < 5.0
            listOf("5.0", "6.0"), // 5.0 <=version < 6.0
            listOf("6.0", "7.0"), // 6.0 <=version < 7.0
            listOf("7.0", "8.0"), // 7.0 <=version < 8.0
            listOf("8.0", "9.0"), // 8.0 <=version < 9.0
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 05:08:24 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

        assertThat(
          mergeAdjacentRanges(
            listOf(
              Mapping(0x0000, 0x002c, TYPE_DISALLOWED_STD3_VALID, ByteString.EMPTY),
            ),
          ),
        ).containsExactly(
          Mapping(0x0000, 0x002c, TYPE_VALID, ByteString.EMPTY),
        )
      }
    
      @Test fun simplifyCombinesCanonicalEquivalent() {
        assertThat(
          mergeAdjacentRanges(
            listOf(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/Client.kt

     * limitations under the License.
     */
    package okhttp3.survey.types
    
    data class Client(
      val userAgent: String,
      val version: String,
      val platform: String? = null,
      val enabled: List<SuiteId> = listOf(),
      val supported: List<SuiteId> = listOf(),
    ) {
      val nameAndVersion: String
        get() = "$userAgent/$version"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 883 bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

      fun recordedRequest() {
        var recordedRequest: RecordedRequest =
          RecordedRequest(
            "",
            headersOf(),
            listOf(),
            0L,
            Buffer(),
            0,
            Socket(),
          )
        recordedRequest = RecordedRequest("", headersOf(), listOf(), 0L, Buffer(), 0, Socket())
        var requestUrl: HttpUrl? = recordedRequest.requestUrl
        var requestLine: String = recordedRequest.requestLine
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            socket,
            socket.inetAddress.hostAddress,
            socket.port,
            true,
          ) as SSLSocket
        sslSocket.useClientMode = false
        Platform.get().configureTlsExtensions(sslSocket, null, listOf(Protocol.HTTP_2))
        sslSocket.startHandshake()
        return sslSocket
      }
    
      override fun onStream(stream: Http2Stream) {
        try {
          val requestHeaders = stream.takeHeaders()
          var path: String? = null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt

            .build()
    
        certificatePinner.check("example.com", listOf(certA1.certificate))
      }
    
      @Test fun successfulFindMatchingPins() {
        val certificatePinner =
          CertificatePinner
            .Builder()
            .add("first.com", certA1Sha256Pin, certB1Sha256Pin)
            .add("second.com", certC1Sha256Pin)
            .build()
    
        val expectedPins =
          listOf(
            Pin("first.com", certA1Sha256Pin),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/configurations/TestPerformanceTest.kt

                        ).joinToString(separator = " ")
                    skipConditionally()
                }
            }
    
            fun BuildSteps.adHocPerformanceTest(tests: List<String>) {
                gradleStep(
                    listOf(
                        "clean",
                        "performance:${testProject}PerformanceAdHocTest",
                        tests.map { """--tests "$it"""" }.joinToString(" "),
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Mon Aug 25 20:21:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/configurations/FlakyTestQuarantine.kt

                functionalTestExtraParameters(
                    listOf("FlakyTestQuarantine"),
                    os,
                    arch,
                    testCoverage.testJvmVersion.major.toString(),
                    testCoverage.vendor.name.lowercase(),
                )
            val parameters =
                (
                    buildToolGradleParameters() +
                        listOf(
                            "-PflakyTests=only",
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Tue Jul 29 03:24:58 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt

        val handshake =
          Handshake.get(
            tlsVersion = TlsVersion.TLS_1_3,
            cipherSuite = CipherSuite.TLS_AES_128_GCM_SHA256,
            peerCertificates = listOf(serverCertificate.certificate, serverIntermediate.certificate),
            localCertificates = listOf(),
          )
    
        assertThat(handshake.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        assertThat(handshake.cipherSuite).isEqualTo(CipherSuite.TLS_AES_128_GCM_SHA256)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top