blob: 327eb93549b0c44779487ee95559c251e600e31f [file] [log] [blame]
Jeff Sharkeyc493cf92017-10-23 10:39:50 -06001// Unit test for AuthTokenTable
Janis Danisevskis8f737ad2017-11-21 12:30:15 -08002
Bob Badour4c7858c2021-02-12 15:40:29 -08003package {
4 // See: http://go/android-license-faq
5 // A large-scale-change added 'default_applicable_licenses' to import
6 // all of the 'license_kinds' from "system_security_license"
7 // to get the below license kinds:
8 // SPDX-license-identifier-Apache-2.0
9 default_applicable_licenses: ["system_security_license"],
10}
11
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060012cc_test {
13 cflags: [
14 "-Wall",
15 "-Werror",
16 "-Wextra",
Shawn Willdenbb22a6c2017-12-06 19:35:28 -070017 "-O0",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060018 ],
Janis Danisevskis9a390a72017-11-29 12:02:07 -080019 srcs: [
Eran Messeri03fc4c82018-08-16 18:53:15 +010020 "aaid_truncation_test.cpp",
Janis Danisevskis9a390a72017-11-29 12:02:07 -080021 "auth_token_table_test.cpp",
22 "auth_token_formatting_test.cpp",
Eran Messeri2ba77c32018-12-04 12:22:16 +000023 "blob_test.cpp",
Janis Danisevskis064ce852018-03-12 16:49:16 -070024 "confirmationui_rate_limiting_test.cpp",
David Zeuthen59102f32020-05-08 10:58:09 -040025 "verification_token_seralization_test.cpp",
Janis Danisevskis9a390a72017-11-29 12:02:07 -080026 "gtest_main.cpp",
27 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060028 name: "keystore_unit_tests",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060029 static_libs: [
Janis Danisevskis064ce852018-03-12 16:49:16 -070030 "android.hardware.confirmationui@1.0",
Shawn Willdenbb22a6c2017-12-06 19:35:28 -070031 "libbase",
Colin Crossaebf6632019-09-18 11:12:36 -070032 "libcrypto_static",
Eran Messeri03fc4c82018-08-16 18:53:15 +010033 "libcutils",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060034 "libgtest_main",
Shawn Willdenbb22a6c2017-12-06 19:35:28 -070035 "libhidlbase",
36 "libkeymaster4support",
Shawn Willdena97aea42020-01-16 13:27:49 -070037 "libkeymaster4_1support",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060038 "libkeystore_test",
39 "liblog",
Eran Messeri03fc4c82018-08-16 18:53:15 +010040 "libutils",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060041 ],
Eran Messeri03fc4c82018-08-16 18:53:15 +010042 shared_libs: [
43 "libbinder",
44 "libkeymaster_messages",
David Zeuthenf2a28672020-01-30 16:20:07 -050045 "libkeystore-attestation-application-id",
Peter Collingbourneeeacea52019-12-17 20:19:47 -080046 "libvndksupport",
Eran Messeri03fc4c82018-08-16 18:53:15 +010047 ],
Vishwath Mohanab65cd02018-01-05 13:35:03 -080048 sanitize: {
49 cfi: false,
50 }
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060051}
Janis Danisevskis5c6af752019-03-21 13:45:02 -070052
53cc_test {
54 cflags: [
55 "-Wall",
56 "-Werror",
57 "-Wextra",
58 "-O0",
59 ],
60 srcs: [
61 "confirmationui_invocation_test.cpp",
62 "gtest_main.cpp",
63 ],
64 name: "confirmationui_invocation_test",
65 static_libs: [
66 "android.hardware.confirmationui@1.0",
67 "libbase",
68 "libgtest_main",
69 "libutils",
70 "liblog",
71 ],
72 shared_libs: [
73 "libbinder",
74 "libkeystore_aidl", // for IKeyStoreService.asInterface()
75 "libkeystore_binder",
76 "libkeystore_parcelables",
77 ],
78 sanitize: {
79 cfi: false,
80 }
81}