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