From 1071e0e7498ca4c1d82cb655e5e59040ea1beb04 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 29 Jul 2021 21:23:59 +0530 Subject: Revamp PSL updates (#1475) * build: import Mozilla's Gradle plugin for PSL updates * autofill-parser: add tests for PublicSuffixListLoader * autofill-parser: regenerate publicsuffixes list * github: switch to Gradle plugin for PSL updates --- .../lib/publicsuffixlist/PublicSuffixListLoaderTest.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 autofill-parser/src/test/kotlin/mozilla/components/lib/publicsuffixlist/PublicSuffixListLoaderTest.kt (limited to 'autofill-parser/src/test') diff --git a/autofill-parser/src/test/kotlin/mozilla/components/lib/publicsuffixlist/PublicSuffixListLoaderTest.kt b/autofill-parser/src/test/kotlin/mozilla/components/lib/publicsuffixlist/PublicSuffixListLoaderTest.kt new file mode 100644 index 00000000..a4b7d4eb --- /dev/null +++ b/autofill-parser/src/test/kotlin/mozilla/components/lib/publicsuffixlist/PublicSuffixListLoaderTest.kt @@ -0,0 +1,18 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +package mozilla.components.lib.publicsuffixlist + +import org.junit.Test + +internal class PublicSuffixListLoaderTest { + @Test + fun testLoadingBundledPublicSuffixList() { + requireNotNull(javaClass.classLoader).getResourceAsStream("publicsuffixes").buffered().use { + stream -> + PublicSuffixListLoader.load(stream) + } + } +} -- cgit v1.2.3