summaryrefslogtreecommitdiff
path: root/keystore/tests/Android.bp
blob: c3a9e660379d194202daeef7a02658145bcab5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Unit test for AuthTokenTable

package {
    default_team: "trendy_team_android_hardware_backed_security",
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_security_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_security_license"],
}

cc_test {
    cflags: [
        "-Wall",
        "-Werror",
        "-Wextra",
        "-O0",
    ],
    srcs: [
        "aaid_truncation_test.cpp",
        "verification_token_seralization_test.cpp",
        "gtest_main.cpp",
    ],
    name: "keystore_unit_tests",
    static_libs: [
        "android.hardware.confirmationui@1.0",
        "libbase",
        "libcrypto_static",
        "libcutils",
        "libgtest_main",
        "libhidlbase",
        "libkeymaster4support",
        "libkeymaster4_1support",
        "liblog",
        "libutils",
    ],
    shared_libs: [
        "android.security.aaid_aidl-cpp",
        "libbinder",
        "libkeymaster_messages",
        "libkeystore-attestation-application-id",
        "libvndksupport",
    ],
    sanitize: {
        cfi: false,
    },
}

cc_test {
    cflags: [
        "-Wall",
        "-Werror",
        "-Wextra",
        "-O0",
    ],
    srcs: [
        "confirmationui_invocation_test.cpp",
        "gtest_main.cpp",
    ],
    name: "confirmationui_invocation_test",
    static_libs: [
        "libbase",
        "libgtest_main",
        "libutils",
        "liblog",
        "android.security.apc-ndk",
    ],
    shared_libs: [
        "libbinder_ndk",
    ],
    sanitize: {
        cfi: false,
    },
}