• 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("../../../../../device_status.gni")
16
17module_output_path = "${device_status_part_name}/unit_out"
18
19ohos_unittest("InteractionManagerTest") {
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24  }
25
26  branch_protector_ret = "pac_ret"
27
28  module_out_path = module_output_path
29  include_dirs = [
30    "${device_status_interfaces_path}/innerkits/interaction/include",
31    "${device_status_utils_path}",
32    "${device_status_utils_path}/include",
33  ]
34
35  defines = []
36
37  sources = [ "src/interaction_manager_test.cpp" ]
38
39  configs = []
40
41  deps = [ "${device_status_interfaces_path}/innerkits:devicestatus_client" ]
42  external_deps = [
43    "access_token:libaccesstoken_sdk",
44    "access_token:libnativetoken",
45    "access_token:libtoken_setproc",
46    "c_utils:utils",
47    "hilog:libhilog",
48    "image_framework:image_native",
49    "input:libmmi-client",
50    "window_manager:libdm",
51  ]
52}
53
54ohos_unittest("InteractionDragDrawingTest") {
55  module_out_path = module_output_path
56  include_dirs = [
57    "${device_status_interfaces_path}/innerkits/interaction/include",
58    "${device_status_utils_path}",
59    "${device_status_utils_path}/include",
60  ]
61
62  sources = [ "src/interaction_drag_drawing_test.cpp" ]
63
64  deps = [ "${device_status_interfaces_path}/innerkits:devicestatus_client" ]
65  external_deps = [
66    "c_utils:utils",
67    "hilog:libhilog",
68    "image_framework:image_native",
69    "input:libmmi-client",
70  ]
71}
72
73group("unittest") {
74  testonly = true
75  deps = []
76  deps += [
77    ":InteractionDragDrawingTest",
78    ":InteractionManagerTest",
79  ]
80}
81