# 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("//build/test.gni") import("../../../../../os_account.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", "${innerkits_common}/include", "${os_account_path}/test/systemtest/common/resource/fuzzTest/include", "${services_path}/accountmgr/include/appaccount", "//third_party/json/include", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } deps = [ "${app_account_innerkits_native_path}:app_account_innerkits", "${common_path}:libaccount_common", "${innerkits_native_path}:libaccountkits", "${os_account_innerkits_native_path}:os_account_innerkits", "${os_account_path}/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", "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", ] } group("fuzzTest") { testonly = true deps = [] }