summaryrefslogtreecommitdiff
path: root/autofill-parser/src/test/kotlin
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-07-29 21:23:59 +0530
committerGitHub <noreply@github.com>2021-07-29 21:23:59 +0530
commit1071e0e7498ca4c1d82cb655e5e59040ea1beb04 (patch)
treeb6241a1c7cfd95beba7650f92874aa162f811cb3 /autofill-parser/src/test/kotlin
parent403bb383b5caa23bbb14f4e59e2727ae70ed2283 (diff)
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
Diffstat (limited to 'autofill-parser/src/test/kotlin')
-rw-r--r--autofill-parser/src/test/kotlin/mozilla/components/lib/publicsuffixlist/PublicSuffixListLoaderTest.kt18
1 files changed, 18 insertions, 0 deletions
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)
+ }
+ }
+}