1f857971dSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2f857971dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3f857971dSopenharmony_ci# you may not use this file except in compliance with the License. 4f857971dSopenharmony_ci# You may obtain a copy of the License at 5f857971dSopenharmony_ci# 6f857971dSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7f857971dSopenharmony_ci# 8f857971dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9f857971dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10f857971dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11f857971dSopenharmony_ci# See the License for the specific language governing permissions and 12f857971dSopenharmony_ci# limitations under the License. 13f857971dSopenharmony_ci 14f857971dSopenharmony_ciimport("//build/test.gni") 15f857971dSopenharmony_ciimport("../../../device_status.gni") 16f857971dSopenharmony_ci 17f857971dSopenharmony_cimodule_output_path = "${device_status_part_name}/unit_out" 18f857971dSopenharmony_ci 19f857971dSopenharmony_ciohos_unittest("InteractionManagerTest") { 20f857971dSopenharmony_ci sanitize = { 21f857971dSopenharmony_ci cfi = true 22f857971dSopenharmony_ci cfi_cross_dso = true 23f857971dSopenharmony_ci debug = false 24f857971dSopenharmony_ci } 25f857971dSopenharmony_ci 26f857971dSopenharmony_ci branch_protector_ret = "pac_ret" 27f857971dSopenharmony_ci 28f857971dSopenharmony_ci module_out_path = module_output_path 29f857971dSopenharmony_ci include_dirs = [ 30f857971dSopenharmony_ci "${device_status_interfaces_path}/innerkits/interaction/include", 31f857971dSopenharmony_ci "${device_status_utils_path}", 32f857971dSopenharmony_ci "${device_status_utils_path}/include", 33f857971dSopenharmony_ci ] 34f857971dSopenharmony_ci 35f857971dSopenharmony_ci defines = [] 36f857971dSopenharmony_ci 37f857971dSopenharmony_ci sources = [ "src/interaction_manager_test.cpp" ] 38f857971dSopenharmony_ci 39f857971dSopenharmony_ci configs = [] 40f857971dSopenharmony_ci 41f857971dSopenharmony_ci deps = [ "${device_status_interfaces_path}/innerkits:devicestatus_client" ] 42f857971dSopenharmony_ci external_deps = [ 43f857971dSopenharmony_ci "access_token:libaccesstoken_sdk", 44f857971dSopenharmony_ci "access_token:libnativetoken_shared", 45f857971dSopenharmony_ci "access_token:libtokensetproc_shared", 46f857971dSopenharmony_ci "c_utils:utils", 47f857971dSopenharmony_ci "graphic_2d:librender_service_client", 48f857971dSopenharmony_ci "hilog:libhilog", 49f857971dSopenharmony_ci "image_framework:image_native", 50f857971dSopenharmony_ci "input:libmmi-client", 51f857971dSopenharmony_ci "window_manager:libdm", 52f857971dSopenharmony_ci ] 53f857971dSopenharmony_ci} 54f857971dSopenharmony_ci 55f857971dSopenharmony_ciohos_unittest("InteractionDragDrawingTest") { 56f857971dSopenharmony_ci sanitize = { 57f857971dSopenharmony_ci cfi = true 58f857971dSopenharmony_ci cfi_cross_dso = true 59f857971dSopenharmony_ci debug = false 60f857971dSopenharmony_ci } 61f857971dSopenharmony_ci 62f857971dSopenharmony_ci module_out_path = module_output_path 63f857971dSopenharmony_ci include_dirs = [ 64f857971dSopenharmony_ci "${device_status_interfaces_path}/innerkits/interaction/include", 65f857971dSopenharmony_ci "${device_status_utils_path}", 66f857971dSopenharmony_ci "${device_status_utils_path}/include", 67f857971dSopenharmony_ci ] 68f857971dSopenharmony_ci 69f857971dSopenharmony_ci sources = [ "src/interaction_drag_drawing_test.cpp" ] 70f857971dSopenharmony_ci 71f857971dSopenharmony_ci deps = [ "${device_status_interfaces_path}/innerkits:devicestatus_client" ] 72f857971dSopenharmony_ci external_deps = [ 73f857971dSopenharmony_ci "c_utils:utils", 74f857971dSopenharmony_ci "graphic_2d:librender_service_client", 75f857971dSopenharmony_ci "hilog:libhilog", 76f857971dSopenharmony_ci "image_framework:image_native", 77f857971dSopenharmony_ci "input:libmmi-client", 78f857971dSopenharmony_ci ] 79f857971dSopenharmony_ci} 80f857971dSopenharmony_ci 81f857971dSopenharmony_ciohos_unittest("InteractionMouseLocationTest") { 82f857971dSopenharmony_ci sanitize = { 83f857971dSopenharmony_ci cfi = true 84f857971dSopenharmony_ci cfi_cross_dso = true 85f857971dSopenharmony_ci debug = false 86f857971dSopenharmony_ci } 87f857971dSopenharmony_ci 88f857971dSopenharmony_ci branch_protector_ret = "pac_ret" 89f857971dSopenharmony_ci module_out_path = module_output_path 90f857971dSopenharmony_ci include_dirs = [ 91f857971dSopenharmony_ci "${device_status_interfaces_path}/innerkits/interaction/include", 92f857971dSopenharmony_ci "${device_status_utils_path}", 93f857971dSopenharmony_ci "${device_status_utils_path}/include", 94f857971dSopenharmony_ci ] 95f857971dSopenharmony_ci 96f857971dSopenharmony_ci sources = [ 97f857971dSopenharmony_ci "${device_status_utils_path}/src/utility.cpp", 98f857971dSopenharmony_ci "src/mouse_location_listener_test.cpp", 99f857971dSopenharmony_ci ] 100f857971dSopenharmony_ci 101f857971dSopenharmony_ci deps = [ "${device_status_interfaces_path}/innerkits:devicestatus_client" ] 102f857971dSopenharmony_ci external_deps = [ 103f857971dSopenharmony_ci "access_token:libaccesstoken_sdk", 104f857971dSopenharmony_ci "access_token:libnativetoken_shared", 105f857971dSopenharmony_ci "access_token:libtokensetproc_shared", 106f857971dSopenharmony_ci "c_utils:utils", 107f857971dSopenharmony_ci "device_manager:devicemanagersdk", 108f857971dSopenharmony_ci "graphic_2d:librender_service_client", 109f857971dSopenharmony_ci "hilog:libhilog", 110f857971dSopenharmony_ci "image_framework:image_native", 111f857971dSopenharmony_ci "input:libmmi-client", 112f857971dSopenharmony_ci "window_manager:libdm", 113f857971dSopenharmony_ci ] 114f857971dSopenharmony_ci} 115f857971dSopenharmony_ci 116f857971dSopenharmony_cigroup("unittest") { 117f857971dSopenharmony_ci testonly = true 118f857971dSopenharmony_ci deps = [ 119f857971dSopenharmony_ci ":InteractionDragDrawingTest", 120f857971dSopenharmony_ci ":InteractionMouseLocationTest", 121f857971dSopenharmony_ci ] 122f857971dSopenharmony_ci if (build_variant == "root" && root_perf_main != "root_main") { 123f857971dSopenharmony_ci deps += [ ":InteractionManagerTest" ] 124f857971dSopenharmony_ci } 125f857971dSopenharmony_ci} 126