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