Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 1 | // Unit test for AuthTokenTable |
Janis Danisevskis | 8f737ad | 2017-11-21 12:30:15 -0800 | [diff] [blame] | 2 | |
Bob Badour | 4c7858c | 2021-02-12 15:40:29 -0800 | [diff] [blame] | 3 | package { |
| 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 Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 12 | cc_test { |
| 13 | cflags: [ |
| 14 | "-Wall", |
| 15 | "-Werror", |
| 16 | "-Wextra", |
Shawn Willden | bb22a6c | 2017-12-06 19:35:28 -0700 | [diff] [blame] | 17 | "-O0", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 18 | ], |
Janis Danisevskis | 9a390a7 | 2017-11-29 12:02:07 -0800 | [diff] [blame] | 19 | srcs: [ |
Eran Messeri | 03fc4c8 | 2018-08-16 18:53:15 +0100 | [diff] [blame] | 20 | "aaid_truncation_test.cpp", |
Janis Danisevskis | 9a390a7 | 2017-11-29 12:02:07 -0800 | [diff] [blame] | 21 | "auth_token_table_test.cpp", |
| 22 | "auth_token_formatting_test.cpp", |
Eran Messeri | 2ba77c3 | 2018-12-04 12:22:16 +0000 | [diff] [blame] | 23 | "blob_test.cpp", |
Janis Danisevskis | 064ce85 | 2018-03-12 16:49:16 -0700 | [diff] [blame] | 24 | "confirmationui_rate_limiting_test.cpp", |
David Zeuthen | 59102f3 | 2020-05-08 10:58:09 -0400 | [diff] [blame] | 25 | "verification_token_seralization_test.cpp", |
Janis Danisevskis | 9a390a7 | 2017-11-29 12:02:07 -0800 | [diff] [blame] | 26 | "gtest_main.cpp", |
| 27 | ], |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 28 | name: "keystore_unit_tests", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 29 | static_libs: [ |
Janis Danisevskis | 064ce85 | 2018-03-12 16:49:16 -0700 | [diff] [blame] | 30 | "android.hardware.confirmationui@1.0", |
Shawn Willden | bb22a6c | 2017-12-06 19:35:28 -0700 | [diff] [blame] | 31 | "libbase", |
Colin Cross | aebf663 | 2019-09-18 11:12:36 -0700 | [diff] [blame] | 32 | "libcrypto_static", |
Eran Messeri | 03fc4c8 | 2018-08-16 18:53:15 +0100 | [diff] [blame] | 33 | "libcutils", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 34 | "libgtest_main", |
Shawn Willden | bb22a6c | 2017-12-06 19:35:28 -0700 | [diff] [blame] | 35 | "libhidlbase", |
| 36 | "libkeymaster4support", |
Shawn Willden | a97aea4 | 2020-01-16 13:27:49 -0700 | [diff] [blame] | 37 | "libkeymaster4_1support", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 38 | "libkeystore_test", |
| 39 | "liblog", |
Eran Messeri | 03fc4c8 | 2018-08-16 18:53:15 +0100 | [diff] [blame] | 40 | "libutils", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 41 | ], |
Eran Messeri | 03fc4c8 | 2018-08-16 18:53:15 +0100 | [diff] [blame] | 42 | shared_libs: [ |
| 43 | "libbinder", |
| 44 | "libkeymaster_messages", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 45 | "libkeystore-attestation-application-id", |
Peter Collingbourne | eeacea5 | 2019-12-17 20:19:47 -0800 | [diff] [blame] | 46 | "libvndksupport", |
Eran Messeri | 03fc4c8 | 2018-08-16 18:53:15 +0100 | [diff] [blame] | 47 | ], |
Vishwath Mohan | ab65cd0 | 2018-01-05 13:35:03 -0800 | [diff] [blame] | 48 | sanitize: { |
| 49 | cfi: false, |
| 50 | } |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 51 | } |
Janis Danisevskis | 5c6af75 | 2019-03-21 13:45:02 -0700 | [diff] [blame] | 52 | |
| 53 | cc_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 | } |