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/notification/distributed_notification_service/notification.gni") 15import("//build/test.gni") 16 17module_output_path = "${component_name}/systemtest" 18 19ohos_systemtest("ActsNotificationFuzzTest") { 20 module_out_path = module_output_path 21 resource_config_file = 22 "${component_path}/test/resource/notificationfuzztest/ohos_test.xml" 23 24 sources = [ 25 "${component_path}/test/resource/notificationfuzztest/src/notificationfuzztestmanager.cpp", 26 "${component_path}/test/resource/notificationfuzztest/src/notificationgetparam.cpp", 27 "actsnotificationfuzztest.cpp", 28 ] 29 30 configs = [ "${component_path}/test/common/acts:ansfwk_kits_test_config" ] 31 32 include_dirs = [ 33 "${ability_runtime_inner_api_path}/ability_manager/include", 34 "${ability_runtime_path}/interfaces/kits/native/ability/native", 35 "${ability_runtime_kits_path}/app/native/app/include/task", 36 "${ability_runtime_services_path}/abilitymgr/include", 37 "${core_path}/include", 38 "${inner_api_path}", 39 "${services_path}/ans/include", 40 "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include", 41 "//third_party/json/single_include", 42 "//commonlibrary/c_utils/base/include", 43 ] 44 45 cflags = [] 46 47 if (target_cpu == "arm") { 48 cflags += [ "-DBINDER_IPC_32BIT" ] 49 } 50 51 deps = [ 52 "${ability_runtime_path}/frameworks/native/appkit:appkit_native", 53 "${ability_runtime_services_path}/abilitymgr:abilityms", 54 "${core_path}:ans_core", 55 "${frameworks_module_ans_path}:ans_innerkits", 56 "${services_path}/ans:ans_targets", 57 "//base/global/resource_management/frameworks/resmgr:global_resmgr", 58 "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client", 59 "//third_party/googletest:gtest_main", 60 ] 61 62 external_deps = [ 63 "ability_base:base", 64 "ability_base:want", 65 "ability_runtime:ability_manager", 66 "ability_runtime:abilitykit_native", 67 "bundle_framework:appexecfwk_base", 68 "bundle_framework:appexecfwk_core", 69 "c_utils:utils", 70 "common_event_service:cesfwk_innerkits", 71 "eventhandler:libeventhandler", 72 "hiviewdfx_hilog_native:libhilog", 73 "ipc:ipc_core", 74 "multimedia_image_framework:image_native", 75 "relational_store:native_appdatafwk", 76 "relational_store:native_dataability", 77 "relational_store:native_rdb", 78 "samgr:samgr_proxy", 79 ] 80} 81 82group("actsnotificationfuzztest") { 83 testonly = true 84 85 deps = [ ":ActsNotificationFuzzTest" ] 86} 87