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 if (target_cpu == "arm64") { 30 defines += [ "_ARM64_" ] 31 } 32 configs = [] 33} 34 35group("unittest") { 36 testonly = true 37 38 deps = [ 39 "unittest/common:unittest", 40 "unittest/domain_account:unittest", 41 "unittest/ohos_account:unittest", 42 "unittest/os_account:unittest", 43 ] 44 if (has_user_auth_part) { 45 deps += [ "unittest/account_iam:unittest" ] 46 } 47 if (has_app_account_part) { 48 deps += [ "unittest/app_account:unittest" ] 49 } 50} 51