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/test.gni") 16 17module_output_path = "account/systemtest" 18 19ohos_systemtest("ActsAccountFuzzTest") { 20 module_out_path = module_output_path 21 resource_config_file = "${os_account_path}/test/systemtest/common/resource/fuzzTest/ohos_test.xml" 22 23 sources = [ 24 "${os_account_path}//test/systemtest/common/resource/fuzzTest/src/fuzz_test_manager.cpp", 25 "${os_account_path}//test/systemtest/common/resource/fuzzTest/src/getparam.cpp", 26 "acts_account_fuzz_test.cpp", 27 ] 28 29 configs = [ 30 "${os_account_path}/test/systemtest/common/acts:accountfuzz_test_config", 31 ] 32 33 include_dirs = [ 34 "${app_account_interfaces_native_path}/include", 35 "${os_account_interfaces_native_path}/include", 36 "${common_path}/account_error/include", 37 "${os_account_path}//test/systemtest/common/resource/fuzzTest/include", 38 "//base/account/os_account/services/accountmgr/include/appaccount", 39 "//base/global/resource_management_lite/frameworks/resmgr_lite/include", 40 "//third_party/json/include", 41 ] 42 43 cflags = [] 44 45 if (target_cpu == "arm") { 46 cflags += [ "-DBINDER_IPC_32BIT" ] 47 } 48 49 deps = [ 50 "${common_path}:libaccount_common", 51 "${innerkits_native_path}:libaccountkits", 52 "//base/account/os_account/frameworks/appaccount/native:app_account_innerkits", 53 "//base/account/os_account/frameworks/osaccount/native:os_account_innerkits", 54 "//base/account/os_account/services/accountmgr/src/appaccount:app_account_service_core", 55 "//third_party/googletest:gtest_main", 56 ] 57 58 defines = [ 59 "ACCOUNT_LOG_TAG = \"AccountFuzzTest\"", 60 "LOG_DOMAIN = 0xD001B00", 61 ] 62 external_deps = [ 63 "ability_base:want", 64 "hiviewdfx_hilog_native:libhilog", 65 "ipc:ipc_core", 66 ] 67} 68 69group("fuzzTest") { 70 testonly = true 71 72 deps = [ ":ActsAccountFuzzTest" ] 73} 74