xref: /aosp_15_r20/system/security/keystore/tests/Android.bp (revision e1997b9af69e3155ead6e072d106a0077849ffba)
1// Unit test for AuthTokenTable
2
3package {
4    default_team: "trendy_team_android_hardware_backed_security",
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "system_security_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-Apache-2.0
10    default_applicable_licenses: ["system_security_license"],
11}
12
13cc_test {
14    cflags: [
15        "-Wall",
16        "-Werror",
17        "-Wextra",
18        "-O0",
19    ],
20    srcs: [
21        "aaid_truncation_test.cpp",
22        "verification_token_seralization_test.cpp",
23        "gtest_main.cpp",
24    ],
25    name: "keystore_unit_tests",
26    static_libs: [
27        "[email protected]",
28        "libbase",
29        "libcrypto_static",
30        "libcutils",
31        "libgtest_main",
32        "libhidlbase",
33        "libkeymaster4support",
34        "libkeymaster4_1support",
35        "liblog",
36        "libutils",
37    ],
38    shared_libs: [
39        "android.security.aaid_aidl-cpp",
40        "libbinder",
41        "libkeymaster_messages",
42        "libkeystore-attestation-application-id",
43        "libvndksupport",
44    ],
45    sanitize: {
46        cfi: false,
47    },
48}
49
50cc_test {
51    cflags: [
52        "-Wall",
53        "-Werror",
54        "-Wextra",
55        "-O0",
56    ],
57    srcs: [
58        "confirmationui_invocation_test.cpp",
59        "gtest_main.cpp",
60    ],
61    name: "confirmationui_invocation_test",
62    static_libs: [
63        "libbase",
64        "libgtest_main",
65        "libutils",
66        "liblog",
67        "android.security.apc-ndk",
68    ],
69    shared_libs: [
70        "libbinder_ndk",
71    ],
72    sanitize: {
73        cfi: false,
74    },
75}
76