• 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/distributed_notification_service/notification.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17
18module_output_path = "${component_name}/unittest"
19
20ohos_unittest("ans_reminder_unit_test") {
21  module_out_path = module_output_path
22
23  include_dirs = [
24    ".",
25    "include",
26    "//commonlibrary/c_utils/base/include",
27    "//utils/system/safwk/native/include",
28    "/${services_path}/ans/include",
29    "${services_path}/ans/test/unittest/mock/include",
30  ]
31
32  sources = [
33    "${frameworks_module_ans_path}/test/unittest/ans_log_test.cpp",
34    "${frameworks_module_ans_path}/test/unittest/enabled_notification_callback_data_test.cpp",
35    "${frameworks_module_ans_path}/test/unittest/message_user_test.cpp",
36    "${frameworks_module_ans_path}/test/unittest/notification_bundle_option_test.cpp",
37    "${frameworks_module_ans_path}/test/unittest/notification_content_test.cpp",
38    "${frameworks_module_ans_path}/test/unittest/notification_conversational_content_test.cpp",
39    "${frameworks_module_ans_path}/test/unittest/notification_conversational_message_test.cpp",
40    "${frameworks_module_ans_path}/test/unittest/notification_do_not_disturb_date_test.cpp",
41    "${frameworks_module_ans_path}/test/unittest/notification_flags_test.cpp",
42    "${frameworks_module_ans_path}/test/unittest/notification_helper_test.cpp",
43    "${frameworks_module_ans_path}/test/unittest/notification_long_text_content_test.cpp",
44    "${frameworks_module_ans_path}/test/unittest/notification_media_content_test.cpp",
45    "${frameworks_module_ans_path}/test/unittest/notification_multiline_content_test.cpp",
46    "${frameworks_module_ans_path}/test/unittest/notification_picture_content_test.cpp",
47    "${frameworks_module_ans_path}/test/unittest/notification_request_test.cpp",
48    "${frameworks_module_ans_path}/test/unittest/notification_sorting_map_test.cpp",
49    "${frameworks_module_ans_path}/test/unittest/notification_sorting_test.cpp",
50    "${frameworks_module_ans_path}/test/unittest/notification_subscribe_info_test.cpp",
51    "${frameworks_module_ans_path}/test/unittest/notification_template_test.cpp",
52    "${frameworks_module_ans_path}/test/unittest/notification_test.cpp",
53    "${frameworks_module_ans_path}/test/unittest/notification_user_input_test.cpp",
54    "${frameworks_module_ans_path}/test/unittest/reminder_helper_test.cpp",
55    "${frameworks_module_ans_path}/test/unittest/reminder_request_alarm_test.cpp",
56    "${frameworks_module_ans_path}/test/unittest/reminder_request_calendar_test.cpp",
57    "${frameworks_module_ans_path}/test/unittest/reminder_request_test.cpp",
58    "${frameworks_module_ans_path}/test/unittest/reminder_request_timer_test.cpp",
59    "${frameworks_module_ans_path}/test/unittest/reminder_store_test.cpp",
60  ]
61
62  configs = [ "//commonlibrary/c_utils/base:utils_config" ]
63
64  deps = [
65    "${core_path}:ans_core",
66    "${frameworks_module_ans_path}:ans_innerkits",
67    "//third_party/googletest:gtest_main",
68  ]
69
70  external_deps = [
71    "ability_base:want",
72    "ability_base:zuri",
73    "ability_runtime:wantagent_innerkits",
74    "bundle_framework:appexecfwk_base",
75    "bundle_framework:appexecfwk_core",
76    "c_utils:utils",
77    "common_event_service:cesfwk_innerkits",
78    "eventhandler:libeventhandler",
79    "hitrace_native:hitrace_meter",
80    "hiviewdfx_hilog_native:libhilog",
81    "ipc:ipc_core",
82    "kv_store:distributeddata_inner",
83    "multimedia_image_framework:image_native",
84    "relational_store:native_rdb",
85    "safwk:system_ability_fwk",
86    "samgr:samgr_proxy",
87  ]
88
89  subsystem_name = "${subsystem_name}"
90  part_name = "${component_name}"
91}
92
93group("unittest") {
94  testonly = true
95  deps = []
96
97  deps += [ ":ans_reminder_unit_test" ]
98}
99