# Copyright (c) 2022 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("//build/ohos.gni") import("//build/test.gni") ohos_unittest("PinAuthHdiUtTest") { module_out_path = "pin_auth/PinAuthHdiUtTest" include_dirs = [ "adaptor/inc", "common/inc", "database/inc", "main/inc", "service/inc", "//drivers/peripheral/pin_auth/hdi_service/adaptor/inc", "//drivers/peripheral/pin_auth/hdi_service/common/inc", "//drivers/peripheral/pin_auth/hdi_service/database/inc", "//drivers/peripheral/pin_auth/hdi_service/main/inc", "//drivers/peripheral/pin_auth/hdi_service/service/inc", ] sources = [ "adaptor/src/adaptor_algorithm_test.cpp", "adaptor/src/adaptor_file_test.cpp", "adaptor/src/adaptor_memory_test.cpp", "adaptor/src/adaptor_time_test.cpp", "common/src/buffer_test.cpp", "database/src/pin_db_test.cpp", "main/src/pin_auth_test.cpp", "main/src/pin_func_test.cpp", "service/src/executor_impl_test.cpp", ] deps = [ "//base/useriam/user_auth_framework/common:iam_test", "//drivers/peripheral/pin_auth/hdi_service:libpin_auth_interface_service_1.0", ] external_deps = [ "c_utils:utils", "drivers_interface_pin_auth:libpin_auth_proxy_1.0", "hdf_core:libhdf_utils", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", ] }