• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13import("//build/ohos.gni")
14import("//build/test.gni")
15
16ohos_unittest("iam_executors_test") {
17  sanitize = {
18    integer_overflow = true
19    ubsan = true
20    boundary_sanitize = true
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24    blocklist = "../../../cfi_blocklist.txt"
25  }
26  branch_protector_ret = "pac_ret"
27  include_dirs = [
28    "mock",
29    "../../../frameworks/native/executors/include",
30    "../../../interfaces/inner_api/iam_executor",
31    "../../../frameworks/native/executors/include/async_command",
32    "../../../frameworks/native/executors/include/framework",
33    "../../../frameworks/native/executors/include/listener",
34    "../../../common/utils",
35    "../../../common/logs",
36  ]
37
38  sources = [
39    "../../../frameworks/native/executors/src/async_command/async_command_base.cpp",
40    "../../../frameworks/native/executors/src/async_command/auth_command.cpp",
41    "../../../frameworks/native/executors/src/async_command/custom_command.cpp",
42    "../../../frameworks/native/executors/src/async_command/enroll_command.cpp",
43    "../../../frameworks/native/executors/src/async_command/identify_command.cpp",
44    "../../../frameworks/native/executors/src/driver.cpp",
45    "../../../frameworks/native/executors/src/driver_manager.cpp",
46    "../../../frameworks/native/executors/src/executor.cpp",
47    "../../../frameworks/native/executors/src/framework/executor_mgr_wrapper.cpp",
48    "../../../frameworks/native/executors/src/framework/framework_executor_callback.cpp",
49    "../../../frameworks/native/executors/src/idriver_manager.cpp",
50    "../../../frameworks/native/executors/src/listener/auth_executor_mgr_status_listener.cpp",
51    "../../../frameworks/native/executors/src/listener/driver_manager_status_listener.cpp",
52    "auth_command_unit_test.cpp",
53    "driver_manager_unit_test.cpp",
54    "enroll_command_unit_test.cpp",
55    "executor_unit_test.cpp",
56    "identify_command_unit_test.cpp",
57  ]
58
59  remove_configs = [ "//build/config/compiler:no_exceptions" ]
60
61  deps = [
62    "../../../common:iam_utils",
63    "../../../frameworks/native/client:userauth_client",
64    "../../../frameworks/native/common:attributes",
65    "../../../frameworks/native/common:dfx",
66    "//third_party/googletest:gmock_main",
67  ]
68
69  external_deps = [
70    "c_utils:utils",
71    "hdf_core:libhdf_host",
72    "hdf_core:libhdf_ipc_adapter",
73    "hdf_core:libhdf_utils",
74    "hdf_core:libhdi",
75    "hilog:libhilog",
76    "init:libbeget_proxy",
77    "ipc:ipc_single",
78    "samgr:samgr_proxy",
79  ]
80
81  configs = [
82    "../../../common:iam_log_config",
83    "../../../common:iam_utils_config",
84  ]
85
86  module_out_path = "useriam/user_auth_framework"
87
88  subsystem_name = "useriam"
89  part_name = "user_auth_framework"
90}
91