• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/test.gni")
15import("//drivers/external_device_manager/extdevmgr.gni")
16module_output_path = "external_device_manager/extension_device_manager"
17
18ohos_unittest("notification_peripheral_test") {
19  module_out_path = "${module_output_path}"
20  sources = [
21    "${ext_mgr_path}/services/native/driver_extension_manager/src/device_notification/notification_locale.cpp",
22    "${ext_mgr_path}/services/native/driver_extension_manager/src/device_notification/notification_peripheral.cpp",
23    "${ext_mgr_path}/services/native/driver_extension_manager/src/event_config.cpp",
24    "notification_peripheral_test.cpp",
25  ]
26
27  include_dirs = [
28    "${ext_mgr_path}/services/native/driver_extension_manager/include/device_notification",
29    "${ext_mgr_path}/services/native/driver_extension_manager/include",
30  ]
31
32  external_deps = [
33    "ability_base:zuri",
34    "cJSON:cjson",
35    "c_utils:utils",
36    "distributed_notification_service:ans_innerkits",
37    "googletest:gmock_main",
38    "googletest:gtest_main",
39    "hilog:libhilog",
40    "i18n:intl_util",
41    "image_framework:image_native",
42    "ipc:ipc_core",
43    "os_account:os_account_innerkits",
44    "safwk:system_ability_fwk",
45    "samgr:samgr_proxy",
46  ]
47  configs = [ "${utils_path}:utils_config" ]
48
49  defines = [ "private = public" ]
50}
51
52ohos_unittest("event_config_test") {
53  module_out_path = "${module_output_path}"
54  sources = [
55    "${ext_mgr_path}/services/native/driver_extension_manager/src/event_config.cpp",
56    "event_config_test.cpp",
57  ]
58
59  include_dirs = [
60    "${ext_mgr_path}/interfaces/innerkits/",
61    "${ext_mgr_path}/services/native/driver_extension_manager/include",
62  ]
63
64  external_deps = [
65    "ability_base:zuri",
66    "cJSON:cjson",
67    "c_utils:utils",
68    "distributed_notification_service:ans_innerkits",
69    "googletest:gmock_main",
70    "googletest:gtest_main",
71    "hilog:libhilog",
72    "i18n:intl_util",
73    "image_framework:image_native",
74    "ipc:ipc_core",
75    "os_account:os_account_innerkits",
76    "safwk:system_ability_fwk",
77    "samgr:samgr_proxy",
78  ]
79  configs = [ "${utils_path}:utils_config" ]
80
81  defines = [ "private = public" ]
82}
83
84ohos_unittest("notification_locale_test") {
85  module_out_path = "${module_output_path}"
86  sources = [
87    "${ext_mgr_path}/services/native/driver_extension_manager/src/device_notification/notification_locale.cpp",
88    "${ext_mgr_path}/services/native/driver_extension_manager/src/event_config.cpp",
89    "notification_locale_test.cpp",
90  ]
91
92  include_dirs = [
93    "${ext_mgr_path}/services/native/driver_extension_manager/include/device_notification",
94    "${ext_mgr_path}/services/native/driver_extension_manager/include",
95  ]
96
97  external_deps = [
98    "ability_base:zuri",
99    "cJSON:cjson",
100    "c_utils:utils",
101    "distributed_notification_service:ans_innerkits",
102    "googletest:gmock_main",
103    "googletest:gtest_main",
104    "hilog:libhilog",
105    "hisysevent:libhisysevent",
106    "i18n:intl_util",
107    "image_framework:image_native",
108    "ipc:ipc_core",
109    "os_account:os_account_innerkits",
110    "safwk:system_ability_fwk",
111    "samgr:samgr_proxy",
112  ]
113  configs = [ "${utils_path}:utils_config" ]
114
115  defines = [ "private = public" ]
116}
117