1# Copyright (c) 2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//test/xts/tools/build/suite.gni") 15 16root_path = "../../../../.." 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20 include_dirs = [ 21 "$root_path/commonlibrary/c_utils/base/include", 22 "$root_path/third_party/bounds_checking_function/include", 23 "include", 24 ] 25} 26 27ohos_moduletest_suite("ActsCryptoFrameworkNAPITest") { 28 configs = [ ":module_private_config" ] 29 cflags_cc = [ "-DHILOG_ENABLE" ] 30 defines = [ 31 "_STANDARD_SYSTEM_", 32 "_USE_OPENSSL_", 33 ] 34 subsystem_name = "security" 35 part_name = "crypto_framework" 36 37 sources = [ 38 "src/crypto_framework_asym_key_test.cpp", 39 "src/crypto_framework_digest_test.cpp", 40 "src/crypto_framework_sym_cipher_test.cpp", 41 "src/crypto_framework_sym_key_test.cpp", 42 "src/crypto_framework_verify_test.cpp", 43 ] 44 45 include_dirs = [ 46 "include", 47 "$root_path/base/security/crypto_framework/interfaces/kits/native/include", 48 "$root_path/base/security/crypto_framework/common/inc", 49 ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "crypto_framework:crypto_framework_lib", 54 "hilog:libhilog", 55 ] 56 57 deps = [ 58 "$root_path/base/security/crypto_framework/common:crypto_plugin_common", 59 "$root_path/base/security/crypto_framework/frameworks/native:ohcrypto", 60 "$root_path/third_party/openssl:libcrypto_shared", 61 ] 62} 63