summaryrefslogtreecommitdiff
path: root/tests/UpdatableSystemFontTest/Android.bp
diff options
context:
space:
mode:
author Kohsuke Yatoh <kyatoh@google.com> 2021-02-04 15:17:42 -0800
committer Kohsuke Yatoh <kyatoh@google.com> 2021-02-04 21:10:21 -0800
commit45c6231908265da0b91ad61df81a0c5af77e0c4a (patch)
tree91b968ac8231f4d5bde64ddd3a1170973d35ed0c /tests/UpdatableSystemFontTest/Android.bp
parentfb05a7f10a0c498b085bf499fd66edaded2d8202 (diff)
Add test for font crash protection.
This test modifies the installed font file with block_device_writer. FontManagerService should detect it and remove the modified file. Bug: 176939176 Test: atest ApkVerityTest Test: atest UpdatableSystemFontTest Change-Id: I7da3f2911459619d5d56a94e091b912d67cb27d3
Diffstat (limited to 'tests/UpdatableSystemFontTest/Android.bp')
-rw-r--r--tests/UpdatableSystemFontTest/Android.bp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/UpdatableSystemFontTest/Android.bp b/tests/UpdatableSystemFontTest/Android.bp
index d809fe8dad56..43a5078c3c24 100644
--- a/tests/UpdatableSystemFontTest/Android.bp
+++ b/tests/UpdatableSystemFontTest/Android.bp
@@ -16,8 +16,14 @@ java_test_host {
name: "UpdatableSystemFontTest",
srcs: ["src/**/*.java"],
libs: ["tradefed", "compatibility-tradefed", "compatibility-host-util"],
- static_libs: ["frameworks-base-hostutils"],
+ static_libs: [
+ "block_device_writer_jar",
+ "frameworks-base-hostutils",
+ ],
test_suites: ["general-tests", "vts"],
+ target_required: [
+ "block_device_writer_module",
+ ],
data: [
":NotoColorEmojiTtf",
":UpdatableSystemFontTestCertDer",