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("UserAuthCoAuthTest") { 18 module_out_path = "useriam/user_auth_hdi" 19 20 cflags = [ "-DIAM_TEST_ENABLE" ] 21 22 include_dirs = [ 23 "../../../hdi_service/adaptor/inc", 24 "../../../hdi_service/coauth/inc", 25 "../../../hdi_service/common/inc", 26 "../../../hdi_service/database/inc", 27 "../../../hdi_service/idm/inc", 28 "../../../hdi_service/interface", 29 "../../../hdi_service/key_mgr/inc", 30 "../../../hdi_service/user_auth/inc", 31 "../../../common/logs", 32 "../../../common/utils", 33 ] 34 35 sources = [ 36 "../../../hdi_service/adaptor/src/adaptor_algorithm.c", 37 "../../../hdi_service/adaptor/src/adaptor_file.c", 38 "../../../hdi_service/adaptor/src/adaptor_memory.c", 39 "../../../hdi_service/adaptor/src/adaptor_time.c", 40 "../../../hdi_service/adaptor/src/file_operator.c", 41 "../../../hdi_service/coauth/src/coauth.c", 42 "../../../hdi_service/coauth/src/coauth_funcs.c", 43 "../../../hdi_service/coauth/src/executor_message.c", 44 "../../../hdi_service/coauth/src/pool.c", 45 "../../../hdi_service/common/src/attribute.c", 46 "../../../hdi_service/common/src/buffer.c", 47 "../../../hdi_service/common/src/c_array.c", 48 "../../../hdi_service/common/src/linked_list.c", 49 "../../../hdi_service/database/src/idm_common.c", 50 "../../../hdi_service/database/src/idm_database.c", 51 "../../../hdi_service/database/src/idm_file_manager.c", 52 "../../../hdi_service/hal_sdk/useriam_common.cpp", 53 "../../../hdi_service/idm/src/enroll_specification_check.c", 54 "../../../hdi_service/idm/src/idm_session.c", 55 "../../../hdi_service/idm/src/user_idm_funcs.c", 56 "../../../hdi_service/key_mgr/src/ed25519_key.c", 57 "../../../hdi_service/key_mgr/src/token_key.c", 58 "../../../hdi_service/service/user_auth_interface_service.cpp", 59 "../../../hdi_service/user_auth/src/auth_level.c", 60 "../../../hdi_service/user_auth/src/context_manager.c", 61 "../../../hdi_service/user_auth/src/identify_funcs.c", 62 "../../../hdi_service/user_auth/src/user_auth_funcs.c", 63 "../../../hdi_service/user_auth/src/user_sign_centre.c", 64 "co_auth_funcs_test.cpp", 65 "co_auth_test.cpp", 66 "executor_message_test.cpp", 67 "pool_test.cpp", 68 ] 69 70 deps = [ "//third_party/openssl:libcrypto_shared" ] 71 72 remove_configs = [ "//build/config/compiler:no_exceptions" ] 73 74 external_deps = [ 75 "c_utils:utils", 76 "drivers_interface_user_auth:user_auth_idl_headers", 77 "hdf_core:libhdf_utils", 78 "hilog:libhilog", 79 "ipc:ipc_core", 80 "ipc:ipc_single", 81 ] 82 83 subsystem_name = "hdf" 84 part_name = "drivers_peripheral_user_auth" 85} 86