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