• 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    "libcppbor_external",
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    "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    srcs: [
40        "gtest_main.cpp",
41        "keymaster_configuration_test.cpp",
42        "hmac_test.cpp",
43        "android_keymaster_test_utils.cpp",
44        "ckdf_test.cpp",
45        "hkdf_test.cpp",
46        "kdf_test.cpp",
47        "kdf1_test.cpp",
48        "kdf2_test.cpp",
49        "ecies_kem_test.cpp",
50        "nist_curve_key_exchange_test.cpp",
51        "authorization_set_test.cpp",
52        "key_blob_test.cpp",
53        "android_keymaster_messages_test.cpp",
54        "android_keymaster_test.cpp",
55        "keymaster_enforcement_test.cpp",
56        "attestation_record_test.cpp",
57        "wrapped_key_test.cpp",
58    ],
59    shared_libs: shared_test_libs,
60    static_libs: static_test_libs,
61    test_suites: ["general-tests"],
62}
63