1package { 2 default_team: "trendy_team_android_hardware_backed_security", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "system_keymaster_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["system_keymaster_license"], 9} 10 11shared_test_libs = [ 12 "libbase", 13 "libcrypto", 14 "libcutils", 15 "libhidlbase", 16 "libkeymaster_messages", 17 "libkeymaster_portable", 18 "liblog", 19 "libsoft_attestation_cert", 20 "libutils", 21] 22 23static_test_libs = [ 24 "libcppbor", 25 "libsoftkeymasterdevice", 26 "libcppcose_rkp", 27] 28 29test_cflags = [ 30 "-DKEYMASTER_NAME_TAGS", 31 "-Wall", 32 "-Werror", 33 "-Wextra", 34 "-Wunused-variable", 35] 36 37cc_test { 38 name: "keymaster_tests", 39 cflags: test_cflags, 40 tidy_timeout_srcs: [ 41 "android_keymaster_messages_test.cpp", 42 "authorization_set_test.cpp", 43 ], 44 srcs: [ 45 "gtest_main.cpp", 46 "keymaster_configuration_test.cpp", 47 "hmac_test.cpp", 48 "android_keymaster_test_utils.cpp", 49 "ckdf_test.cpp", 50 "hkdf_test.cpp", 51 "kdf_test.cpp", 52 "kdf1_test.cpp", 53 "kdf2_test.cpp", 54 "ecies_kem_test.cpp", 55 "nist_curve_key_exchange_test.cpp", 56 "authorization_set_test.cpp", 57 "key_blob_test.cpp", 58 "android_keymaster_messages_test.cpp", 59 "keymaster_enforcement_test.cpp", 60 "attestation_record_test.cpp", 61 "wrapped_key_test.cpp", 62 ], 63 shared_libs: shared_test_libs, 64 static_libs: static_test_libs, 65 test_suites: ["general-tests"], 66} 67