Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setListBytes (0.17 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"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top