# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/security/huks/huks.gni") import("//build/ohos.gni") import("//build/test.gni") module_output_path = "huks_standard/huks_standard_test" ohos_moduletest("huks_stability_test") { module_out_path = module_output_path testonly = true sources = [ "src/api_pressure_test.cpp", "src/pressure_test.cpp", ] cflags_cc = [ "-Wall", "-Werror", ] defines = [ "L2_STANDARD", "_HARDWARE_ROOT_KEY_", "_HUKS_LOG_ENABLE_", ] if (use_crypto_lib == "openssl") { defines += [ "_USE_OPENSSL_" ] } if (use_crypto_lib == "mbedtls") { defines += [ "_USE_MBEDTLS_" ] } include_dirs = [ "//utils/native/base/include", "//base/security/huks/interfaces/innerkits/huks_standard/main/include", "//base/security/huks/frameworks/huks_standard/main/common/include", ] deps = [ "//base/security/huks/interfaces/innerkits/huks_standard/main:libhukssdk", "//third_party/googletest:gtest_main", "//utils/native/base:utils", ] }