1# Copyright (c) 2025 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", "-std=c99", "-Wno-c99-designator" ] 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_common_test.cpp", 39 "src/crypto_framework_asym_key_test.cpp", 40 "src/crypto_framework_digest_test.cpp", 41 "src/crypto_framework_sym_cipher_test.cpp", 42 "src/crypto_framework_sym_key_test.cpp", 43 "src/crypto_framework_verify_test.cpp", 44 "src/crypto_framework_signature_test.cpp", 45 "src/crypto_framework_asym_cipher_test.cpp", 46 "src/crypto_framework_agreement_test.cpp", 47 "src/crypto_framework_kdf_test.cpp", 48 "src/crypto_framework_random_test.cpp", 49 "src/crypto_framework_mac_test.cpp", 50 ] 51 52 include_dirs = [ 53 "include", 54 "$root_path/base/security/crypto_framework/interfaces/kits/native/include", 55 "$root_path/base/security/crypto_framework/common/inc", 56 ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "crypto_framework:crypto_framework_lib", 61 "hilog:libhilog", 62 ] 63 64 deps = [ 65 "$root_path/base/security/crypto_framework/common:crypto_plugin_common", 66 "$root_path/base/security/crypto_framework/frameworks/native:ohcrypto", 67 "$root_path/third_party/openssl:libcrypto_shared", 68 ] 69} 70