• 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("//build/test.gni")
15
16## UnitTest calendarmanager_test {{{
17config("test_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [ "unittest/include" ]
20  cflags = []
21}
22
23ohos_unittest("calendarmanager_test") {
24  branch_protector_ret = "pac_ret"
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29    blocklist = "./calendardata_blocklist.txt"
30  }
31  module_out_path = "applications/calendar_data"
32  sources = [
33    "unittest/src/calendar_manager_test.cpp",
34    "unittest/src/calendar_test.cpp",
35    "unittest/src/data_share_helper_manager_test.cpp",
36    "unittest/src/event_attendee_test.cpp",
37    "unittest/src/event_filter_test.cpp",
38    "unittest/src/event_location_test.cpp",
39    "unittest/src/event_recurrence_rule_test.cpp",
40    "unittest/src/event_reminder_test.cpp",
41    "unittest/src/event_service_test.cpp",
42    "unittest/src/get_self_permissions.cpp",
43    "unittest/src/test_main.cpp",
44  ]
45  deps = [
46    "//applications/standard/calendardata/calendarmanager:calendarmanager_static",
47  ]
48  include_dirs = [
49    "//applications/standard/calendardata/calendarmanager/common",
50    "//applications/standard/calendardata/calendarmanager/native/include",
51  ]
52  public_configs = [ ":test_public_config" ]
53  external_deps = [
54    "ability_base:want",
55    "ability_base:zuri",
56    "ability_runtime:ability_manager",
57    "ability_runtime:abilitykit_native",
58    "access_token:libaccesstoken_sdk",
59    "access_token:libnativetoken_shared",
60    "access_token:libtoken_setproc",
61    "c_utils:utils",
62    "data_share:datashare_common",
63    "data_share:datashare_consumer",
64    "hilog:libhilog",
65    "ipc:ipc_single",
66    "napi:ace_napi",
67    "safwk:system_ability_fwk",
68    "samgr:samgr_proxy",
69    "c_utils:utils",
70    "access_token:libtokenid_sdk",
71    "hilog:libhilog",
72    "hilog:libhilog_base",
73    "jsoncpp:jsoncpp",
74    "os_account:libaccountkits",
75    "os_account:os_account_innerkits",
76    "ability_runtime:ability_manager",
77    "ability_runtime:cj_extensionkit_native",
78    "googletest:gmock",
79    "googletest:gtest",
80  ]
81
82  defines = []
83}
84
85## UnitTest calendarmanager_test }}}
86
87group("unittest") {
88  testonly = true
89
90  deps = []
91
92  deps += [ ":calendarmanager_test" ]
93}
94