blob: 7e78c452337a4c9a06bab6ff1aefa0175ed0eac9 [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
17cc_test {
Shawn Willden08a7e432020-12-11 13:05:27 +000018 name: "VtsAidlKeyMintTargetTest",
Selene Huang31ab4042020-04-29 04:22:39 -070019 defaults: [
20 "VtsHalTargetTestDefaults",
21 "use_libaidlvintf_gtest_helper_static",
22 ],
23 srcs: [
Shawn Willden7c130392020-12-21 09:58:22 -070024 "AttestKeyTest.cpp",
Shawn Willden08a7e432020-12-11 13:05:27 +000025 "KeyMintTest.cpp",
Selene Huang31ab4042020-04-29 04:22:39 -070026 ],
27 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080028 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070029 "libcrypto",
Shawn Willden08a7e432020-12-11 13:05:27 +000030 "libkeymint",
31 "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070032 ],
33 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090034 "android.hardware.security.keymint-V1-ndk_platform",
35 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden08a7e432020-12-11 13:05:27 +000036 "libcppbor_external",
37 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070038 ],
39 test_suites: [
40 "general-tests",
41 "vts",
42 ],
43}
44
45cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000046 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070047 defaults: [
48 "VtsHalTargetTestDefaults",
49 "use_libaidlvintf_gtest_helper_static",
50 ],
51 srcs: [
52 "KeyMintAidlTestBase.cpp",
53 ],
54 export_include_dirs: [
55 ".",
56 ],
57 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080058 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070059 "libcrypto",
Shawn Willden08a7e432020-12-11 13:05:27 +000060 "libkeymint",
61 "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070062 ],
63 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090064 "android.hardware.security.keymint-V1-ndk_platform",
65 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden274bb552020-09-30 22:39:22 -060066 "libcppbor_external",
67 ],
68}
69
70cc_test {
71 name: "VtsHalRemotelyProvisionedComponentTargetTest",
72 defaults: [
73 "VtsHalTargetTestDefaults",
74 "use_libaidlvintf_gtest_helper_static",
75 ],
76 srcs: [
77 "VtsRemotelyProvisionedComponentTests.cpp",
78 ],
79 shared_libs: [
80 "libbinder_ndk",
81 "libcppbor_external",
82 "libcrypto",
83 "libkeymaster_portable",
84 "libpuresoftkeymasterdevice",
85 ],
86 static_libs: [
87 "android.hardware.security.keymint-unstable-ndk_platform",
88 "libcppcose",
89 "libgmock_ndk",
90 "libremote_provisioner",
91 "libkeymint",
92 "libkeymint_remote_prov_support",
93 ],
94 test_suites: [
95 "general-tests",
96 "vts",
Selene Huang31ab4042020-04-29 04:22:39 -070097 ],
98}