• 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  cflags = [
28    "-Dprivate=public",
29    "-Dprotected=public",
30  ]
31  include_dirs = [
32    "mock",
33    "../../../frameworks/native/executors/include",
34    "../../../interfaces/inner_api/iam_executor",
35    "../../../frameworks/native/executors/include/async_command",
36    "../../../frameworks/native/executors/include/framework",
37    "../../../frameworks/native/executors/include/listener",
38    "../../../common/utils",
39    "../../../common/logs",
40  ]
41
42  sources = [
43    "../../../frameworks/native/executors/src/async_command/async_command_base.cpp",
44    "../../../frameworks/native/executors/src/async_command/auth_command.cpp",
45    "../../../frameworks/native/executors/src/async_command/collect_command.cpp",
46    "../../../frameworks/native/executors/src/async_command/custom_command.cpp",
47    "../../../frameworks/native/executors/src/async_command/enroll_command.cpp",
48    "../../../frameworks/native/executors/src/async_command/identify_command.cpp",
49    "../../../frameworks/native/executors/src/driver.cpp",
50    "../../../frameworks/native/executors/src/driver_manager.cpp",
51    "../../../frameworks/native/executors/src/executor.cpp",
52    "../../../frameworks/native/executors/src/framework/executor_mgr_wrapper.cpp",
53    "../../../frameworks/native/executors/src/framework/framework_executor_callback.cpp",
54    "../../../frameworks/native/executors/src/iauth_executor_hdi.cpp",
55    "../../../frameworks/native/executors/src/idriver_manager.cpp",
56    "../../../frameworks/native/executors/src/listener/auth_executor_mgr_status_listener.cpp",
57    "../../../frameworks/native/executors/src/listener/driver_manager_status_listener.cpp",
58    "auth_command_unit_test.cpp",
59    "driver_manager_unit_test.cpp",
60    "enroll_command_unit_test.cpp",
61    "executor_unit_test.cpp",
62    "iauth_executor_hdi_test.cpp",
63    "identify_command_unit_test.cpp",
64  ]
65
66  remove_configs = [ "//build/config/compiler:no_exceptions" ]
67
68  deps = [
69    "../../../common:iam_utils",
70    "../../../frameworks/native/client:userauth_client",
71    "../../../frameworks/native/common:attributes",
72    "../../../frameworks/native/common:dfx",
73  ]
74
75  external_deps = [
76    "c_utils:utils",
77    "googletest:gmock_main",
78    "hdf_core:libhdf_host",
79    "hdf_core:libhdf_ipc_adapter",
80    "hdf_core:libhdf_utils",
81    "hdf_core:libhdi",
82    "hilog:libhilog",
83    "init:libbeget_proxy",
84    "init:libbegetutil",
85    "ipc:ipc_single",
86    "samgr:samgr_proxy",
87  ]
88
89  configs = [
90    "../../../common:iam_log_config",
91    "../../../common:iam_utils_config",
92  ]
93
94  module_out_path = "useriam/user_auth_framework"
95
96  subsystem_name = "useriam"
97  part_name = "user_auth_framework"
98}
99