# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/account/os_account/os_account.gni") import("//build/test.gni") module_output_path = "account/systemtest" ohos_systemtest("ActsAccountFuzzTest") { module_out_path = module_output_path resource_config_file = "${os_account_path}/test/systemtest/common/resource/fuzzTest/ohos_test.xml" sources = [ "${os_account_path}//test/systemtest/common/resource/fuzzTest/src/fuzz_test_manager.cpp", "${os_account_path}//test/systemtest/common/resource/fuzzTest/src/getparam.cpp", "acts_account_fuzz_test.cpp", ] configs = [ "${os_account_path}/test/systemtest/common/acts:accountfuzz_test_config", ] include_dirs = [ "${app_account_interfaces_native_path}/include", "${os_account_interfaces_native_path}/include", "${common_path}/account_error/include", "${os_account_path}//test/systemtest/common/resource/fuzzTest/include", "//base/account/os_account/services/accountmgr/include/appaccount", "//base/global/resource_management_lite/frameworks/resmgr_lite/include", "//third_party/json/include", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } deps = [ "${common_path}:libaccount_common", "${innerkits_native_path}:libaccountkits", "//base/account/os_account/frameworks/appaccount/native:app_account_innerkits", "//base/account/os_account/frameworks/osaccount/native:os_account_innerkits", "//base/account/os_account/services/accountmgr/src/appaccount:app_account_service_core", "//third_party/googletest:gtest_main", ] defines = [ "ACCOUNT_LOG_TAG = \"AccountFuzzTest\"", "LOG_DOMAIN = 0xD001B00", ] external_deps = [ "ability_base:want", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", ] } group("fuzzTest") { testonly = true deps = [ ":ActsAccountFuzzTest" ] }