1# Copyright (C) 2021 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("//base/security/huks/huks.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17 18module_output_path = "huks_standard/huks_standard_test" 19 20ohos_reliabilitytest("huks_stability_test") { 21 module_out_path = module_output_path 22 sources = [ 23 "src/api_pressure_test.cpp", 24 "src/pressure_test.cpp", 25 ] 26 cflags_cc = [ 27 "-Wall", 28 "-Werror", 29 ] 30 31 defines = [ 32 "L2_STANDARD", 33 "_HARDWARE_ROOT_KEY_", 34 "_HUKS_LOG_ENABLE_", 35 ] 36 37 if (use_crypto_lib == "openssl") { 38 defines += [ "_USE_OPENSSL_" ] 39 } 40 if (use_crypto_lib == "mbedtls") { 41 defines += [ "_USE_MBEDTLS_" ] 42 } 43 44 include_dirs = [ 45 "//commonlibrary/c_utils/base/include", 46 "//base/security/huks/interfaces/innerkits/huks_standard/main/include", 47 "//base/security/huks/frameworks/huks_standard/main/common/include", 48 ] 49 50 deps = [ 51 "//base/security/huks/interfaces/innerkits/huks_standard/main:libhukssdk", 52 "//third_party/googletest:gtest_main", 53 ] 54 external_deps = [ 55 "c_utils:utils", 56 "hiviewdfx_hilog_native:libhilog", 57 ] 58} 59