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_moduletest("huks_stability_test") { 21 module_out_path = module_output_path 22 testonly = true 23 sources = [ 24 "src/api_pressure_test.cpp", 25 "src/pressure_test.cpp", 26 ] 27 cflags_cc = [ 28 "-Wall", 29 "-Werror", 30 ] 31 32 defines = [ 33 "L2_STANDARD", 34 "_HARDWARE_ROOT_KEY_", 35 "_HUKS_LOG_ENABLE_", 36 ] 37 38 if (use_crypto_lib == "openssl") { 39 defines += [ "_USE_OPENSSL_" ] 40 } 41 if (use_crypto_lib == "mbedtls") { 42 defines += [ "_USE_MBEDTLS_" ] 43 } 44 45 include_dirs = [ 46 "//utils/native/base/include", 47 "//base/security/huks/interfaces/innerkits/huks_standard/main/include", 48 "//base/security/huks/frameworks/huks_standard/main/common/include", 49 ] 50 51 deps = [ 52 "//base/security/huks/interfaces/innerkits/huks_standard/main:libhukssdk", 53 "//third_party/googletest:gtest_main", 54 "//utils/native/base:utils", 55 ] 56} 57