Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setListBytes (1.42 sec)

  1. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

      @Test fun longestMatchWins() {
        val buffer =
          Buffer()
            .writeUtf8("com\n")
            .writeUtf8("my.square.com\n")
            .writeUtf8("square.com\n")
        publicSuffixDatabase.setListBytes(buffer.readByteArray(), byteArrayOf())
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("example.com"))
          .isEqualTo("example.com")
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.example.com"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            this.publicSuffixExceptionListBytes = publicSuffixExceptionListBytes!!
          }
        } finally {
          readCompleteLatch.countDown()
        }
      }
    
      /** Visible for testing. */
      fun setListBytes(
        publicSuffixListBytes: ByteArray,
        publicSuffixExceptionListBytes: ByteArray,
      ) {
        this.publicSuffixListBytes = publicSuffixListBytes
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top