• 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("UserAuthBaseTest") {
18  module_out_path = "useriam/user_auth_hdi"
19
20  cflags = [ "-DIAM_TEST_ENABLE" ]
21
22  include_dirs = [
23    "inc",
24    "../../../hdi_service/adaptor/inc",
25    "../../../hdi_service/coauth/inc",
26    "../../../hdi_service/common/inc",
27    "../../../hdi_service/database/inc",
28    "../../../hdi_service/idm/inc",
29    "../../../hdi_service/interface/inc",
30    "../../../hdi_service/key_mgr/inc",
31    "../../../hdi_service/user_auth/inc",
32    "../../../common/logs",
33    "../../../common/utils",
34  ]
35
36  sources = [
37    "src/adaptor_algorithm_test.cpp",
38    "src/adaptor_file_test.cpp",
39    "src/adaptor_memory_test.cpp",
40    "src/adaptor_time_test.cpp",
41    "src/buffer_test.cpp",
42    "src/key_mgr_test.cpp",
43  ]
44
45  deps = [ "../../../hdi_service:libuser_auth_interface_service_1.1" ]
46
47  remove_configs = [ "//build/config/compiler:no_exceptions" ]
48
49  external_deps = [
50    "c_utils:utils",
51    "drivers_interface_user_auth:libuser_auth_proxy_1.1",
52    "hdf_core:libhdf_utils",
53    "hilog:libhilog",
54    "ipc:ipc_core",
55  ]
56
57  subsystem_name = "hdf"
58  part_name = "drivers_peripheral_user_auth"
59}
60