• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "hardware_interfaces_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_defaults {
27    name: "keymint_vts_defaults",
28    defaults: [
29        "keymint_use_latest_hal_aidl_ndk_static",
30        "use_libaidlvintf_gtest_helper_static",
31        "VtsHalTargetTestDefaults",
32    ],
33    shared_libs: [
34        "libbinder",
35        "libbinder_ndk",
36        "libcrypto",
37        "libbase",
38        "libgatekeeper",
39        "packagemanager_aidl-cpp",
40    ],
41    static_libs: [
42        "android.hardware.gatekeeper@1.0",
43        "android.hardware.gatekeeper-V1-ndk",
44        "android.hardware.security.rkp-V3-ndk",
45        "android.hardware.security.secureclock-V1-ndk",
46        "libavb_user",
47        "libavb",
48        "libcppbor_external",
49        "libcppcose_rkp",
50        "libfs_mgr",
51        "libjsoncpp",
52        "libkeymint",
53        "libkeymint_remote_prov_support",
54        "libkeymint_support",
55    ],
56}
57
58cc_test {
59    name: "VtsAidlKeyMintTargetTest",
60    defaults: [
61        "keymint_vts_defaults",
62    ],
63    tidy_timeout_srcs: [
64        "KeyMintTest.cpp",
65    ],
66    srcs: [
67        "AttestKeyTest.cpp",
68        "AuthTest.cpp",
69        "BootloaderStateTest.cpp",
70        "DeviceUniqueAttestationTest.cpp",
71        "KeyBlobUpgradeTest.cpp",
72        "KeyMintTest.cpp",
73        "SecureElementProvisioningTest.cpp",
74    ],
75    static_libs: [
76        "libkeymint_vts_test_utils",
77    ],
78    test_suites: [
79        "general-tests",
80        "vts",
81    ],
82}
83
84cc_test_library {
85    name: "libkeymint_vts_test_utils",
86    defaults: [
87        "keymint_vts_defaults",
88    ],
89    tidy_timeout_srcs: [
90        "KeyMintAidlTestBase.cpp",
91    ],
92    srcs: [
93        "KeyMintAidlTestBase.cpp",
94    ],
95    export_include_dirs: [
96        ".",
97    ],
98    export_static_lib_headers: [
99        "libkeymint_support",
100    ],
101    static_libs: [
102        "libgmock_ndk",
103    ],
104}
105