• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
16import("../../../os_account.gni")
17
18config("accountmgr_test_config") {
19  include_dirs = [ "mock/include" ]
20
21  defines = [
22    "ACCOUNT_LOG_TAG = \"AccountMgrServiceTest\"",
23    "LOG_DOMAIN = 0xD001B00",
24  ]
25
26  if (has_user_idm_part) {
27    cflags_cc = [ "-DHAS_USER_IDM_PART" ]
28  }
29
30  configs = []
31}
32
33group("unittest") {
34  testonly = true
35
36  deps = [
37    "unittest/common:unittest",
38    "unittest/domain_account:unittest",
39    "unittest/ohos_account:unittest",
40    "unittest/os_account:unittest",
41  ]
42  if (has_user_auth_part) {
43    deps += [ "unittest/account_iam:unittest" ]
44  }
45  if (has_app_account_part) {
46    deps += [ "unittest/app_account:unittest" ]
47  }
48}
49