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("iam_inner_api_test") { 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 blocklist = "../../../cfi_blocklist.txt" 26 } 27 branch_protector_ret = "pac_ret" 28 include_dirs = [ 29 "inc", 30 "mocks", 31 "../services/mocks", 32 "../../../interfaces/inner_api", 33 "../../../frameworks/js/napi/user_auth/inc", 34 "../../../frameworks/native/client/inc", 35 ] 36 37 sources = [ 38 "../../../frameworks/native/client/src/auth_message_impl.cpp", 39 "../../../frameworks/native/client/src/callback_manager_impl.cpp", 40 "../../../frameworks/native/client/src/co_auth_client_impl.cpp", 41 "../../../frameworks/native/client/src/executor_callback_service.cpp", 42 "../../../frameworks/native/client/src/executor_messenger_client.cpp", 43 "../../../frameworks/native/client/src/user_auth_callback_service.cpp", 44 "../../../frameworks/native/client/src/user_auth_client_impl.cpp", 45 "../../../frameworks/native/client/src/user_idm_callback_service.cpp", 46 "../../../frameworks/native/client/src/user_idm_client_impl.cpp", 47 "../../../frameworks/native/client/src/widget_callback_service.cpp", 48 "mocks/mock_ipc_client_utils.cpp", 49 "src/callback_manager_impl_test.cpp", 50 "src/co_auth_client_test.cpp", 51 "src/co_auth_proxy_test.cpp", 52 "src/executor_callback_proxy_test.cpp", 53 "src/executor_callback_service_test.cpp", 54 "src/executor_callback_stub_test.cpp", 55 "src/executor_messenger_client_test.cpp", 56 "src/executor_messenger_proxy_test.cpp", 57 "src/executor_messenger_stub_test.cpp", 58 "src/user_auth_callback_proxy_test.cpp", 59 "src/user_auth_callback_service_test.cpp", 60 "src/user_auth_callback_stub_test.cpp", 61 "src/user_auth_client_test.cpp", 62 "src/user_auth_event_listener_stub_test.cpp", 63 "src/user_auth_proxy_test.cpp", 64 "src/user_idm_callback_proxy_test.cpp", 65 "src/user_idm_callback_service_test.cpp", 66 "src/user_idm_callback_stub_test.cpp", 67 "src/user_idm_client_test.cpp", 68 "src/user_idm_proxy_test.cpp", 69 "src/widget_callback_proxy_test.cpp", 70 "src/widget_callback_service_test.cpp", 71 "src/widget_callback_stub_test.cpp", 72 ] 73 74 configs = [ 75 "../../../common:iam_log_config", 76 "../../../common:iam_utils_config", 77 "../../../frameworks/native/ipc:userauth_client_ipc_config", 78 ] 79 remove_configs = [ "//build/config/compiler:no_exceptions" ] 80 81 deps = [ 82 "../../../frameworks/native/common:attributes", 83 "../../../frameworks/native/common:dfx", 84 "../../../frameworks/native/ipc:userauth_client_ipc", 85 "../../../frameworks/native/ipc:userauth_service_ipc", 86 "//third_party/googletest:gmock", 87 ] 88 89 external_deps = [ 90 "c_utils:utils", 91 "hilog:libhilog", 92 "ipc:ipc_single", 93 "napi:ace_napi", 94 ] 95 96 module_out_path = "useriam/user_auth_framework" 97 98 subsystem_name = "useriam" 99 part_name = "user_auth_framework" 100} 101