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. 13 14import("//build/test.gni") 15 16ohos_unittest("face_auth_service_test") { 17 module_out_path = "useriam/face_auth" 18 19 sources = [ 20 "face_auth_driver_hdi_unit_test.cpp", 21 "face_auth_executor_callback_hdi_unit_test.cpp", 22 "face_auth_executor_hdi_unit_test.cpp", 23 "face_auth_service_test.cpp", 24 ] 25 26 include_dirs = [ 27 "mock", 28 "//base/useriam/user_auth_framework/common/logs", 29 "//base/useriam/user_auth_framework/common/utils", 30 "//base/useriam/user_auth_framework/common/executors/include/public", 31 "//base/useriam/face_auth/common/inc", 32 "//base/useriam/face_auth/frameworks/ipc/inc", 33 "//base/useriam/face_auth/services/inc", 34 "//base/useriam/user_auth_framework/interfaces/inner_api", 35 ] 36 37 deps = [ 38 "//base/useriam/face_auth/services:faceauthservice", 39 "//third_party/googletest:gmock_main", 40 "//third_party/googletest:gtest_main", 41 ] 42 43 external_deps = [ 44 "ability_base:want", 45 "access_token:libaccesstoken_sdk", 46 "access_token:libnativetoken", 47 "access_token:libtoken_setproc", 48 "bundle_framework:appexecfwk_core", 49 "c_utils:utils", 50 "drivers_interface_face_auth:libface_auth_proxy_1.0", 51 "hiviewdfx_hilog_native:libhilog", 52 "ipc:ipc_core", 53 "samgr:samgr_proxy", 54 ] 55 remove_configs = [ "//build/config/compiler:no_exceptions" ] 56} 57 58ohos_unittest("face_auth_perm_test") { 59 module_out_path = "useriam/face_auth" 60 61 sources = [ "face_auth_service_perm_test.cpp" ] 62 63 include_dirs = [ 64 "mock", 65 "//base/useriam/user_auth_framework/common/logs", 66 "//base/useriam/user_auth_framework/common/utils", 67 "//base/useriam/user_auth_framework/common/executors/include/public", 68 "//base/useriam/face_auth/common/inc", 69 "//base/useriam/face_auth/frameworks/ipc/inc", 70 "//base/useriam/face_auth/services/inc", 71 "//base/useriam/user_auth_framework/interfaces/inner_api", 72 ] 73 74 deps = [ 75 "//base/useriam/face_auth/services:faceauthservice", 76 "//third_party/googletest:gmock_main", 77 "//third_party/googletest:gtest_main", 78 ] 79 80 external_deps = [ 81 "ability_base:want", 82 "bundle_framework:appexecfwk_core", 83 "c_utils:utils", 84 "drivers_interface_face_auth:libface_auth_proxy_1.0", 85 "hiviewdfx_hilog_native:libhilog", 86 "ipc:ipc_core", 87 "samgr:samgr_proxy", 88 ] 89 remove_configs = [ "//build/config/compiler:no_exceptions" ] 90} 91 92group("faceauth_unittest") { 93 testonly = true 94 deps = [ 95 ":face_auth_perm_test", 96 ":face_auth_service_test", 97 ] 98} 99