1# Copyright (c) 2022 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. 13import("//build/ohos.gni") 14import("//build/test.gni") 15 16ohos_unittest("iam_executors_test") { 17 include_dirs = [ 18 "mock", 19 "//base/useriam/user_auth_framework/common/executors/include", 20 "//base/useriam/user_auth_framework/common/executors/include/public", 21 "//base/useriam/user_auth_framework/common/executors/include/async_command", 22 "//base/useriam/user_auth_framework/common/executors/include/framework", 23 "//base/useriam/user_auth_framework/common/utils", 24 "//base/useriam/user_auth_framework/common/logs", 25 ] 26 27 sources = [ 28 "auth_command_unit_test.cpp", 29 "driver_manager_unit_test.cpp", 30 "enroll_command_unit_test.cpp", 31 "executor_unit_test.cpp", 32 "identify_command_unit_test.cpp", 33 ] 34 35 remove_configs = [ "//build/config/compiler:no_exceptions" ] 36 37 deps = [ 38 "//base/useriam/user_auth_framework/common:iam_utils", 39 "//base/useriam/user_auth_framework/common/executors:userauth_executors", 40 "//base/useriam/user_auth_framework/frameworks/native/client:userauth_client", 41 "//base/useriam/user_auth_framework/frameworks/native/common:attributes", 42 "//base/useriam/user_auth_framework/frameworks/native/common:dfx", 43 "//third_party/googletest:gmock_main", 44 ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "hdf_core:libhdf_host", 49 "hdf_core:libhdf_ipc_adapter", 50 "hdf_core:libhdf_utils", 51 "hdf_core:libhdi", 52 "hiviewdfx_hilog_native:libhilog", 53 "init:libbeget_proxy", 54 "ipc:ipc_single", 55 "samgr:samgr_proxy", 56 ] 57 58 configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ] 59 60 module_out_path = "useriam/user_auth_framework" 61} 62