1# Copyright (c) 2021 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("//base/account/os_account/os_account.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17 18config("accountmgr_test_config") { 19 include_dirs = [ 20 "//commonlibrary/c_utils/base/include", 21 "mock/include", 22 ] 23 24 defines = [ 25 "ACCOUNT_LOG_TAG = \"AccountMgrServiceTest\"", 26 "LOG_DOMAIN = 0xD001B00", 27 ] 28 29 if (has_user_idm_part) { 30 cflags_cc = [ "-DHAS_USER_IDM_PART" ] 31 } 32 33 configs = [] 34} 35 36group("unittest") { 37 testonly = true 38 39 deps = [ 40 "unittest/ability_manager_adapter:unittest", 41 "unittest/account_event_provider_test:unittest", 42 "unittest/account_file_operator_test:unittest", 43 "unittest/account_iam_callback_test:unittest", 44 "unittest/account_mgr_service_test:unittest", 45 "unittest/app_account:unittest", 46 "unittest/ohos_account_data_deal_test:unittest", 47 "unittest/os_account:unittest", 48 ] 49 if (has_user_auth_part) { 50 deps += [ "unittest/account_iam:unittest" ] 51 } 52} 53