• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/ces_standard/event.gni")
15import("//build/test.gni")
16
17module_output_path = "ces_standard/systemtest"
18
19ohos_systemtest("ActsCESManagertest") {
20  module_out_path = module_output_path
21  resource_config_file = "${ces_standard_path}/test/systemtest/common/resource/testconfig/ohos_test.xml"
22
23  sources = [ "actsCESManagertest.cpp" ]
24
25  configs = [
26    "//foundation/appexecfwk/standard/libs/libeventhandler:libeventhandler_config",
27    "${ces_standard_path}/test/systemtest/common/ces:cesfwk_kits_test_config",
28  ]
29
30  include_dirs = [
31    "//utils/native/base/include",
32    "//foundation/appexecfwk/standard/common/log/include",
33    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
34    "//foundation/aafwk/standard/interfaces/innerkits/base/include",
35    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content",
36    "${ces_standard_path}/test/systemtest/common/resource",
37    "//third_party/json/single_include",
38  ]
39
40  cflags = []
41
42  if (target_cpu == "arm") {
43    cflags += [ "-DBINDER_IPC_32BIT" ]
44  }
45
46  deps = [
47    "${ces_common_path}:libevent_common",
48    "${ces_core_path}:cesfwk_core",
49    "${ces_native_path}:cesfwk_innerkits",
50    "${services_path}:cesfwk_services",
51    "//third_party/googletest:gtest_main",
52    "//utils/native/base:utils",
53  ]
54
55  defines = [
56    "APP_LOG_TAG = \"CesFwkKitsTest\"",
57    "LOG_DOMAIN = 0xD002200",
58  ]
59
60  external_deps = [
61    "ability_base:want",
62    "access_token:libaccesstoken_sdk",
63    "bundle_framework:appexecfwk_base",
64    "bundle_framework:appexecfwk_core",
65    "eventhandler:libeventhandler",
66    "hiviewdfx_hilog_native:libhilog",
67    "ipc:ipc_core",
68    "samgr_standard:samgr_proxy",
69  ]
70}
71
72group("actsCESTest") {
73  testonly = true
74
75  deps = [ ":ActsCESManagertest" ]
76}
77