• 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.
13
14import("//build/ohos.gni")
15import("//build/test.gni")
16
17ohos_unittest("iam_inner_api_test") {
18  include_dirs = [
19    "inc",
20    "mocks",
21    "../services/mocks",
22    "../../../interfaces/inner_api",
23    "../../../frameworks/js/napi/user_auth/inc",
24    "../../../frameworks/native/client/inc",
25  ]
26
27  sources = [
28    "../../../frameworks/native/client/src/auth_message_impl.cpp",
29    "../../../frameworks/native/client/src/callback_manager_impl.cpp",
30    "../../../frameworks/native/client/src/co_auth_client_impl.cpp",
31    "../../../frameworks/native/client/src/executor_callback_service.cpp",
32    "../../../frameworks/native/client/src/executor_messenger_client.cpp",
33    "../../../frameworks/native/client/src/user_auth_callback_service.cpp",
34    "../../../frameworks/native/client/src/user_auth_client_impl.cpp",
35    "../../../frameworks/native/client/src/user_idm_callback_service.cpp",
36    "../../../frameworks/native/client/src/user_idm_client_impl.cpp",
37    "../../../frameworks/native/client/src/widget_callback_service.cpp",
38    "mocks/mock_ipc_client_utils.cpp",
39    "src/callback_manager_impl_test.cpp",
40    "src/co_auth_client_test.cpp",
41    "src/co_auth_proxy_test.cpp",
42    "src/executor_callback_proxy_test.cpp",
43    "src/executor_callback_service_test.cpp",
44    "src/executor_callback_stub_test.cpp",
45    "src/executor_messenger_client_test.cpp",
46    "src/executor_messenger_proxy_test.cpp",
47    "src/executor_messenger_stub_test.cpp",
48    "src/user_auth_callback_proxy_test.cpp",
49    "src/user_auth_callback_service_test.cpp",
50    "src/user_auth_callback_stub_test.cpp",
51    "src/user_auth_client_test.cpp",
52    "src/user_auth_proxy_test.cpp",
53    "src/user_idm_callback_proxy_test.cpp",
54    "src/user_idm_callback_service_test.cpp",
55    "src/user_idm_callback_stub_test.cpp",
56    "src/user_idm_client_test.cpp",
57    "src/user_idm_proxy_test.cpp",
58    "src/widget_callback_proxy_test.cpp",
59    "src/widget_callback_service_test.cpp",
60    "src/widget_callback_stub_test.cpp",
61  ]
62
63  configs = [
64    "../../../common:iam_log_config",
65    "../../../common:iam_utils_config",
66    "../../../frameworks/native/ipc:userauth_client_ipc_config",
67  ]
68  remove_configs = [ "//build/config/compiler:no_exceptions" ]
69
70  deps = [
71    "../../../frameworks/native/common:attributes",
72    "../../../frameworks/native/common:dfx",
73    "../../../frameworks/native/ipc:userauth_client_ipc",
74    "../../../frameworks/native/ipc:userauth_service_ipc",
75    "//third_party/googletest:gmock",
76  ]
77
78  external_deps = [
79    "c_utils:utils",
80    "hilog:libhilog",
81    "ipc:ipc_single",
82    "napi:ace_napi",
83  ]
84
85  module_out_path = "useriam/user_auth_framework"
86
87  subsystem_name = "useriam"
88  part_name = "user_auth_framework"
89}
90