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 "packagemanager_aidl-cpp", 38 ], 39 static_libs: [ 40 "android.hardware.security.secureclock-V1-ndk", 41 "libcppbor_external", 42 "libcppcose_rkp", 43 "libjsoncpp", 44 "libkeymint", 45 "libkeymint_remote_prov_support", 46 "libkeymint_support", 47 ], 48} 49 50cc_test { 51 name: "VtsAidlKeyMintTargetTest", 52 defaults: [ 53 "keymint_vts_defaults", 54 ], 55 tidy_timeout_srcs: [ 56 "KeyMintTest.cpp", 57 ], 58 srcs: [ 59 "AttestKeyTest.cpp", 60 "DeviceUniqueAttestationTest.cpp", 61 "KeyMintTest.cpp", 62 "SecureElementProvisioningTest.cpp", 63 ], 64 static_libs: [ 65 "libkeymint_vts_test_utils", 66 ], 67 test_suites: [ 68 "general-tests", 69 "vts", 70 ], 71} 72 73cc_test_library { 74 name: "libkeymint_vts_test_utils", 75 defaults: [ 76 "keymint_vts_defaults", 77 ], 78 tidy_timeout_srcs: [ 79 "KeyMintAidlTestBase.cpp", 80 ], 81 srcs: [ 82 "KeyMintAidlTestBase.cpp", 83 ], 84 export_include_dirs: [ 85 ".", 86 ], 87 export_static_lib_headers: [ 88 "libkeymint_support", 89 ], 90 static_libs: [ 91 "libgmock_ndk", 92 ], 93} 94 95cc_test { 96 name: "VtsHalRemotelyProvisionedComponentTargetTest", 97 defaults: [ 98 "keymint_vts_defaults", 99 ], 100 srcs: [ 101 "VtsRemotelyProvisionedComponentTests.cpp", 102 ], 103 static_libs: [ 104 "libgmock_ndk", 105 "libkeymaster_portable", 106 "libkeymint_vts_test_utils", 107 "libpuresoftkeymasterdevice", 108 ], 109 test_config: "VtsRemotelyProvisionedComponentTests.xml", 110 test_suites: [ 111 "general-tests", 112 "vts", 113 ], 114} 115