1# Copyright (c) 2022-2023 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("//build/ohos.gni") 15import("//build/test.gni") 16 17ohos_unittest("PinAuthHdiUtTest") { 18 sanitize = { 19 integer_overflow = true 20 ubsan = true 21 boundary_sanitize = true 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 branch_protector_ret = "pac_ret" 27 module_out_path = "drivers_peripheral_pin_auth/drivers_peripheral_pin_auth" 28 29 include_dirs = [ 30 "adaptor/inc", 31 "common/inc", 32 "database/inc", 33 "main/inc", 34 "service/inc", 35 "../../../hdi_service/adaptor/inc", 36 "../../../hdi_service/common/inc", 37 "../../../hdi_service/database/inc", 38 "../../../hdi_service/main/inc", 39 "../../../hdi_service/service/inc", 40 ] 41 42 sources = [ 43 "adaptor/src/adaptor_algorithm_test.cpp", 44 "adaptor/src/adaptor_file_test.cpp", 45 "adaptor/src/adaptor_memory_test.cpp", 46 "adaptor/src/adaptor_time_test.cpp", 47 "adaptor/src/buffer_test.cpp", 48 "common/src/common_impl.c", 49 "database/src/pin_db_ops_base_test.cpp", 50 "database/src/pin_db_ops_test.cpp", 51 "database/src/pin_db_ops_v0_test.cpp", 52 "database/src/pin_db_ops_v1_test.cpp", 53 "database/src/pin_db_test.cpp", 54 "main/src/all_in_one_func_test.cpp", 55 "main/src/pin_auth_test.cpp", 56 "service/src/all_in_one_impl_test.cpp", 57 ] 58 59 deps = [ "../../../hdi_service:libpin_auth_interface_service_2.0" ] 60 61 external_deps = [ 62 "c_utils:utils", 63 "drivers_interface_pin_auth:libpin_auth_proxy_2.0", 64 "hdf_core:libhdf_utils", 65 "hilog:libhilog", 66 "ipc:ipc_core", 67 ] 68 69 subsystem_name = "hdf" 70 part_name = "drivers_peripheral_pin_auth" 71} 72