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/test.gni") 16 17module_output_path = "huks_standard/huks_standard_test" 18 19ohos_moduletest("huks_fuzz_test") { 20 module_out_path = module_output_path 21 sources = [ "src/huks_fuzz_test.cpp" ] 22 23 cflags_cc = [ 24 "-Wall", 25 "-Werror", 26 ] 27 if (use_crypto_lib == "openssl") { 28 defines = [ "_USE_OPENSSL_" ] 29 } 30 if (use_crypto_lib == "mbedtls") { 31 defines = [ "_USE_MBEDTLS_" ] 32 } 33 34 include_dirs = [ 35 "//utils/native/base/include", 36 "//third_party/bounds_checking_function/include", 37 "//base/security/huks/interfaces/innerkits/huks_standard/main/include", 38 "include", 39 ] 40 deps = [ 41 "//base/security/huks/frameworks/huks_standard/main:huks_standard_frameworks", 42 "//base/security/huks/interfaces/innerkits/huks_standard/main:libhukssdk", 43 "//third_party/bounds_checking_function:libsec_static", 44 "//third_party/googletest:gtest_main", 45 "//utils/native/base:utils", 46 ] 47} 48