• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/common_event_service/event.gni")
15import("//build/test.gni")
16
17module_output_path = "common_event_service/systemtest"
18
19ohos_systemtest("ActsFuzzTest") {
20  module_out_path = module_output_path
21  resource_config_file = "${common_event_service_path}/test/systemtest/common/resource/fuzzTest/ohos_test.xml"
22
23  sources = [
24    "${common_event_service_path}/test/systemtest/common/resource/fuzzTest/src/fuzzTestManager.cpp",
25    "${common_event_service_path}/test/systemtest/common/resource/fuzzTest/src/getparam.cpp",
26    "actsFuzzTest.cpp",
27  ]
28
29  configs = [ "${common_event_service_path}/test/systemtest/common/ces:cesfwk_kits_test_config" ]
30
31  include_dirs = [
32    "//commonlibrary/c_utils/base/include",
33    "${common_event_service_path}/test/systemtest/common/resource",
34    "//third_party/json/single_include",
35    "${services_path}/include",
36    "${ability_runtime_path}/interfaces/kits/native/appkit/app",
37    "${ability_runtime_inner_api_path}/ability_manager/include",
38    "${ability_runtime_path}/interfaces/kits/native/ability/native",
39    "${ability_runtime_services_path}/abilitymgr/include",
40    "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
41    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
42  ]
43
44  cflags = []
45
46  if (target_cpu == "arm") {
47    cflags += [ "-DBINDER_IPC_32BIT" ]
48  }
49
50  deps = [
51    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
52    "${ability_runtime_inner_api_path}/app_manager:app_manager",
53    "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
54    "${ability_runtime_path}/frameworks/native/ability/native:data_ability_helper",
55    "${ability_runtime_path}/frameworks/native/appkit:appkit_native",
56    "${ability_runtime_services_path}/abilitymgr:abilityms",
57    "${ces_common_path}:libevent_common",
58    "${ces_native_path}:cesfwk_innerkits",
59    "//third_party/googletest:gtest_main",
60  ]
61
62  external_deps = [
63    "ability_base:configuration",
64    "ability_base:want",
65    "ability_base:zuri",
66    "access_token:libaccesstoken_sdk",
67    "bundle_framework:appexecfwk_base",
68    "bundle_framework:appexecfwk_core",
69    "c_utils:utils",
70    "eventhandler:libeventhandler",
71    "hiviewdfx_hilog_native:libhilog",
72    "ipc:ipc_core",
73    "relational_store:native_appdatafwk",
74    "relational_store:native_dataability",
75    "relational_store:native_rdb",
76  ]
77
78  if (common_event_service_with_graphics) {
79    external_deps += [ "input:libmmi-client" ]
80  }
81}
82
83group("fuzzTest") {
84  testonly = true
85
86  deps = [ ":ActsFuzzTest" ]
87}
88