# Copyright (c) 2022-2023 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("UserAuthCoAuthTest") { module_out_path = "useriam/user_auth_hdi" cflags = [ "-DIAM_TEST_ENABLE" ] include_dirs = [ "../../../hdi_service/adaptor/inc", "../../../hdi_service/coauth/inc", "../../../hdi_service/common/inc", "../../../hdi_service/database/inc", "../../../hdi_service/idm/inc", "../../../hdi_service/interface", "../../../hdi_service/key_mgr/inc", "../../../hdi_service/user_auth/inc", "../../../common/logs", "../../../common/utils", ] sources = [ "../../../hdi_service/adaptor/src/adaptor_algorithm.c", "../../../hdi_service/adaptor/src/adaptor_file.c", "../../../hdi_service/adaptor/src/adaptor_memory.c", "../../../hdi_service/adaptor/src/adaptor_time.c", "../../../hdi_service/adaptor/src/file_operator.c", "../../../hdi_service/coauth/src/coauth.c", "../../../hdi_service/coauth/src/coauth_funcs.c", "../../../hdi_service/coauth/src/executor_message.c", "../../../hdi_service/coauth/src/pool.c", "../../../hdi_service/common/src/attribute.c", "../../../hdi_service/common/src/buffer.c", "../../../hdi_service/common/src/c_array.c", "../../../hdi_service/common/src/linked_list.c", "../../../hdi_service/database/src/idm_common.c", "../../../hdi_service/database/src/idm_database.c", "../../../hdi_service/database/src/idm_file_manager.c", "../../../hdi_service/hal_sdk/useriam_common.cpp", "../../../hdi_service/idm/src/enroll_specification_check.c", "../../../hdi_service/idm/src/idm_session.c", "../../../hdi_service/idm/src/user_idm_funcs.c", "../../../hdi_service/key_mgr/src/ed25519_key.c", "../../../hdi_service/key_mgr/src/token_key.c", "../../../hdi_service/service/user_auth_interface_service.cpp", "../../../hdi_service/user_auth/src/auth_level.c", "../../../hdi_service/user_auth/src/context_manager.c", "../../../hdi_service/user_auth/src/identify_funcs.c", "../../../hdi_service/user_auth/src/user_auth_funcs.c", "../../../hdi_service/user_auth/src/user_sign_centre.c", "co_auth_funcs_test.cpp", "co_auth_test.cpp", "executor_message_test.cpp", "pool_test.cpp", ] deps = [ "//third_party/openssl:libcrypto_shared" ] remove_configs = [ "//build/config/compiler:no_exceptions" ] external_deps = [ "c_utils:utils", "drivers_interface_user_auth:user_auth_idl_headers", "hdf_core:libhdf_utils", "hilog:libhilog", "ipc:ipc_core", "ipc:ipc_single", ] subsystem_name = "hdf" part_name = "drivers_peripheral_user_auth" }