• 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.
13import("//base/hiviewdfx/hiview/build/hiview_var.gni")
14import("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/test.gni")
16
17module_output_path = "hiview/hiview/eventservice"
18
19config("hiview_eventservice_test_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    ".",
24    "$hiview_core",
25    "unnittest/common",
26  ]
27
28  cflags = [ "-D__UNITTEST__" ]
29}
30
31ohos_unittest("EventServiceActionTest") {
32  module_out_path = module_output_path
33  configs = [ ":hiview_eventservice_test_config" ]
34  sources = [ "unittest/common/event_service_action_test.cpp" ]
35
36  deps = [
37    "$hiview_adapter/plugins/eventservice/service:sys_event_service_adapter",
38    "$hiview_adapter/plugins/eventservice/service/idl:sys_event_service_ohos",
39    "$hiview_base:hiviewbase_static_lib_for_tdd",
40    "$hiview_core:hiview_core",
41    "$hiview_root/plugins/eventservice:sys_event_service",
42  ]
43
44  external_deps = [
45    "hilog_native:libhilog",
46    "ipc:ipc_core",
47    "safwk:system_ability_fwk",
48    "samgr:samgr_proxy",
49  ]
50
51  resource_config_file =
52      "//base/hiviewdfx/hiview/plugins/eventservice/test/resource/ohos_test.xml"
53}
54