• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-2025 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("../../../multimodalinput_mini.gni")
16
17module_output_path = "input/input"
18
19ohos_unittest("CrownTransformProcessorTest") {
20  module_out_path = module_output_path
21
22  configs = [
23    "${mmi_path}:coverage_flags",
24    "${mmi_path}/service:libmmi_server_config",
25    "${mmi_path}/service/filter:mmi_event_filter_config",
26    "${mmi_path}/common/anco/comm:mmi_anco_channel_config",
27  ]
28
29  cflags = [
30    "-Dprivate=public",
31    "-Dprotected=public",
32  ]
33
34  include_dirs = [
35    "${mmi_path}/test/facility/libinput_interface/include",
36    "${mmi_path}/test/facility/mock/include",
37  ]
38
39  sanitize = {
40    cfi = true
41    cfi_cross_dso = true
42    debug = false
43    blocklist = "./../../ipc_blocklist.txt"
44  }
45
46  sources = [ "src/crown_transform_processor_test.cpp" ]
47
48  deps = [
49    "${mmi_path}/service:libmmi-server",
50    "${mmi_path}/test/facility/libinput_interface:libinput_interface_sources",
51    "${mmi_path}/test/facility/libinput_wrapper:libinput_wrapper_sources",
52    "${mmi_path}/test/facility/virtual_device:virtual_device_sources",
53    "${mmi_path}/util:libmmi-util",
54  ]
55
56  external_deps = [
57    "c_utils:utils",
58    "data_share:datashare_consumer",
59    "googletest:gmock_main",
60    "graphic_2d:2d_graphics",
61    "graphic_2d:librender_service_client",
62    "hilog:libhilog",
63    "image_framework:image_native",
64    "ipc:ipc_core",
65    "libinput:libinput-third-mmi",
66    "preferences:native_preferences",
67    "window_manager:libwm",
68  ]
69}
70
71ohos_unittest("CrownTransformProcessorExTest") {
72  module_out_path = module_output_path
73
74  configs = [
75    "${mmi_path}:coverage_flags",
76    "${mmi_path}/service:libmmi_server_config",
77  ]
78
79  cflags = [
80    "-Dprivate=public",
81    "-Dprotected=public",
82  ]
83
84  sources = [ "src/crown_transform_processor_ex_test.cpp" ]
85
86  deps = [
87    "${mmi_path}/service:libmmi-server",
88    "${mmi_path}/test/facility/libinput_wrapper:libinput_wrapper_sources",
89    "${mmi_path}/test/facility/mock:mmi_mock_sources",
90    "${mmi_path}/test/facility/virtual_device:virtual_device_sources",
91    "${mmi_path}/util:libmmi-util",
92  ]
93
94  external_deps = [
95    "c_utils:utils",
96    "data_share:datashare_consumer",
97    "googletest:gmock_main",
98    "googletest:gtest_main",
99    "graphic_2d:2d_graphics",
100    "graphic_2d:librender_service_client",
101    "hilog:libhilog",
102    "image_framework:image_native",
103    "libinput:libinput-third-mmi",
104    "window_manager:libwm",
105  ]
106}
107