Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 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 | |
| 17 | cc_test { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 18 | name: "VtsAidlKeyMintTargetTest", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 19 | defaults: [ |
| 20 | "VtsHalTargetTestDefaults", |
| 21 | "use_libaidlvintf_gtest_helper_static", |
| 22 | ], |
| 23 | srcs: [ |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 24 | "KeyMintTest.cpp", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 25 | ], |
| 26 | shared_libs: [ |
Janis Danisevskis | 24c0470 | 2020-12-16 18:28:39 -0800 | [diff] [blame] | 27 | "libbinder_ndk", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 28 | "libcrypto", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 29 | "libkeymint", |
| 30 | "libkeymint_support", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 31 | ], |
| 32 | static_libs: [ |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 33 | "android.hardware.security.keymint-V1-ndk_platform", |
| 34 | "android.hardware.security.secureclock-V1-ndk_platform", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 35 | "libcppbor_external", |
| 36 | "libkeymint_vts_test_utils", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 37 | ], |
| 38 | test_suites: [ |
| 39 | "general-tests", |
| 40 | "vts", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_test_library { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 45 | name: "libkeymint_vts_test_utils", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 46 | defaults: [ |
| 47 | "VtsHalTargetTestDefaults", |
| 48 | "use_libaidlvintf_gtest_helper_static", |
| 49 | ], |
| 50 | srcs: [ |
| 51 | "KeyMintAidlTestBase.cpp", |
| 52 | ], |
| 53 | export_include_dirs: [ |
| 54 | ".", |
| 55 | ], |
| 56 | shared_libs: [ |
Janis Danisevskis | 24c0470 | 2020-12-16 18:28:39 -0800 | [diff] [blame] | 57 | "libbinder_ndk", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 58 | "libcrypto", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 59 | "libkeymint", |
| 60 | "libkeymint_support", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 61 | ], |
| 62 | static_libs: [ |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 63 | "android.hardware.security.keymint-V1-ndk_platform", |
| 64 | "android.hardware.security.secureclock-V1-ndk_platform", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 65 | "libcppbor_external", |
| 66 | ], |
| 67 | } |
| 68 | |
| 69 | cc_test { |
| 70 | name: "VtsHalRemotelyProvisionedComponentTargetTest", |
| 71 | defaults: [ |
| 72 | "VtsHalTargetTestDefaults", |
| 73 | "use_libaidlvintf_gtest_helper_static", |
| 74 | ], |
| 75 | srcs: [ |
| 76 | "VtsRemotelyProvisionedComponentTests.cpp", |
| 77 | ], |
| 78 | shared_libs: [ |
| 79 | "libbinder_ndk", |
| 80 | "libcppbor_external", |
| 81 | "libcrypto", |
| 82 | "libkeymaster_portable", |
| 83 | "libpuresoftkeymasterdevice", |
| 84 | ], |
| 85 | static_libs: [ |
Jeongik Cha | 95dbe44 | 2021-02-17 12:30:56 +0900 | [diff] [blame^] | 86 | "android.hardware.security.keymint-V1-ndk_platform", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 87 | "libcppcose", |
| 88 | "libgmock_ndk", |
| 89 | "libremote_provisioner", |
| 90 | "libkeymint", |
| 91 | "libkeymint_remote_prov_support", |
| 92 | ], |
| 93 | test_suites: [ |
| 94 | "general-tests", |
| 95 | "vts", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 96 | ], |
| 97 | } |