blob: 2de19d5f324301c6134c00f1eb0e6177551b8381 [file] [log] [blame]
Selene Huang31ab4042020-04-29 04:22:39 -07001//
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
Bob Badourb224b362021-02-12 20:13:01 -080017package {
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
Seth Moore23f62452021-06-25 14:20:15 -070026cc_defaults {
27 name: "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070028 defaults: [
Selene Huang31ab4042020-04-29 04:22:39 -070029 "use_libaidlvintf_gtest_helper_static",
Seth Moore23f62452021-06-25 14:20:15 -070030 "VtsHalTargetTestDefaults",
Selene Huang31ab4042020-04-29 04:22:39 -070031 ],
32 shared_libs: [
David Drysdalef43406a2023-01-11 13:27:26 +000033 "libbinder",
Janis Danisevskis24c04702020-12-16 18:28:39 -080034 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070035 "libcrypto",
Selene Huang31ab4042020-04-29 04:22:39 -070036 ],
37 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090038 "android.hardware.security.keymint-V1-ndk_platform",
39 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden08a7e432020-12-11 13:05:27 +000040 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070041 "libcppcose_rkp",
Seth Moore23f62452021-06-25 14:20:15 -070042 "libjsoncpp",
Max Bires38dd36e2021-05-23 15:06:23 -070043 "libkeymint",
David Drysdale4dc01072021-04-01 12:17:35 +010044 "libkeymint_remote_prov_support",
Max Bires38dd36e2021-05-23 15:06:23 -070045 "libkeymint_support",
Seth Moore23f62452021-06-25 14:20:15 -070046 ],
47}
48
49cc_test {
50 name: "VtsAidlKeyMintTargetTest",
51 defaults: [
52 "keymint_vts_defaults",
53 ],
54 srcs: [
55 "AttestKeyTest.cpp",
56 "DeviceUniqueAttestationTest.cpp",
57 "KeyMintTest.cpp",
58 ],
59 static_libs: [
Shawn Willden08a7e432020-12-11 13:05:27 +000060 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070061 ],
62 test_suites: [
63 "general-tests",
64 "vts",
65 ],
66}
67
68cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000069 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070070 defaults: [
Seth Moore23f62452021-06-25 14:20:15 -070071 "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070072 ],
73 srcs: [
74 "KeyMintAidlTestBase.cpp",
75 ],
76 export_include_dirs: [
77 ".",
78 ],
Selene Huang31ab4042020-04-29 04:22:39 -070079 static_libs: [
David Drysdale4dc01072021-04-01 12:17:35 +010080 "libgmock_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -060081 ],
82}
83
84cc_test {
85 name: "VtsHalRemotelyProvisionedComponentTargetTest",
86 defaults: [
Seth Moore23f62452021-06-25 14:20:15 -070087 "keymint_vts_defaults",
Shawn Willden274bb552020-09-30 22:39:22 -060088 ],
89 srcs: [
90 "VtsRemotelyProvisionedComponentTests.cpp",
91 ],
Shawn Willden274bb552020-09-30 22:39:22 -060092 static_libs: [
Shawn Willden274bb552020-09-30 22:39:22 -060093 "libgmock_ndk",
Max Bires9704ff62021-04-07 11:12:01 -070094 "libkeymaster_portable",
David Drysdalef0d516d2021-03-22 07:51:43 +000095 "libkeymint_vts_test_utils",
Max Bires9704ff62021-04-07 11:12:01 -070096 "libpuresoftkeymasterdevice",
Shawn Willden274bb552020-09-30 22:39:22 -060097 ],
Seth Moore643a7942021-07-20 15:44:01 -070098 test_config: "VtsRemotelyProvisionedComponentTests.xml",
Shawn Willden274bb552020-09-30 22:39:22 -060099 test_suites: [
100 "general-tests",
101 "vts",
Selene Huang31ab4042020-04-29 04:22:39 -0700102 ],
103}