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") 15 16group("hdf_disp_composer_unittest") { 17 testonly = true 18 deps = [ 19 ":composer_death_test", 20 ":composer_ut", 21 ] 22} 23 24module_output_path = 25 "drivers_peripheral_display/drivers_peripheral_display_composer" 26 27config("module_private_config") { 28 visibility = [ ":*" ] 29} 30 31ohos_unittest("composer_ut") { 32 module_out_path = module_output_path 33 resource_config_file = "./../resource/ohos_test.xml" 34 sources = [ "hdi_composer_ut.cpp" ] 35 include_dirs = [ "../common" ] 36 deps = [ "../common:disp_dev_hdi_test_common" ] 37 external_deps = [ 38 "c_utils:utils", 39 "drivers_interface_display:libdisplay_buffer_hdi_impl", 40 "drivers_interface_display:libdisplay_buffer_stub_1.0", 41 "drivers_interface_display:libdisplay_composer_hdi_impl_1.3", 42 "drivers_interface_display:libdisplay_composer_stub_1.0", 43 "drivers_interface_display:libdisplay_composer_stub_1.1", 44 "drivers_interface_display:libdisplay_composer_stub_1.2", 45 "drivers_interface_display:libdisplay_composer_stub_1.3", 46 "drivers_interface_display:libhdifd_parcelable", 47 "googletest:gtest", 48 "graphic_surface:buffer_handle", 49 "hdf_core:libhdf_utils", 50 "hilog:libhilog", 51 "ipc:ipc_core", 52 ] 53 cflags = [ "-Wno-unused-function" ] 54 subsystem_name = "hdf" 55 part_name = "drivers_peripheral_display" 56} 57 58ohos_unittest("composer_death_test") { 59 module_out_path = module_output_path 60 resource_config_file = "./../resource/ohos_test.xml" 61 sources = [ "hdi_death_test.cpp" ] 62 include_dirs = [ "../common" ] 63 deps = [ "../common:disp_dev_hdi_test_common" ] 64 external_deps = [ 65 "c_utils:utils", 66 "drivers_interface_display:libdisplay_buffer_hdi_impl", 67 "drivers_interface_display:libdisplay_buffer_stub_1.0", 68 "drivers_interface_display:libdisplay_composer_hdi_impl_1.2", 69 "drivers_interface_display:libdisplay_composer_stub_1.0", 70 "googletest:gtest", 71 "graphic_surface:buffer_handle", 72 "hdf_core:libhdf_utils", 73 "hdf_core:libhdf_utils", 74 "hilog:libhilog", 75 "ipc:ipc_core", 76 ] 77 cflags = [ "-Wno-unused-function" ] 78 subsystem_name = "hdf" 79 part_name = "drivers_peripheral_display" 80} 81