1# Copyright (c) 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("//foundation/arkui/ace_engine/ace_config.gni") 15import("//foundation/arkui/ace_engine/build/ace_ext.gni") 16import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni") 17 18ace_unittest("view_stack_processor_test_ng") { 19 type = "new" 20 module_output = "basic" 21 sources = [ "view_stack_processor_test_ng.cpp" ] 22} 23 24ace_unittest("distributed_ui_test_ng") { 25 type = "new" 26 module_output = "basic" 27 sources = [ "distributed_ui_test_ng.cpp" ] 28} 29 30ace_unittest("frame_node_test_ng") { 31 type = "new" 32 module_output = "basic" 33 sources = [ 34 "frame_node_test_ng.cpp", 35 "frame_node_test_ng_coverage.cpp", 36 "frame_node_test_ng_coverage_new.cpp", 37 "frame_node_test_ng_new.cpp", 38 "frame_node_test_ng_v3.cpp", 39 "frame_node_test_ng_dump.cpp", 40 ] 41} 42 43ace_unittest("frame_node_drop_test_ng") { 44 type = "new" 45 module_output = "basic" 46 sources = [ "frame_node_drop_test_ng.cpp" ] 47} 48 49ace_unittest("geometry_node_test_ng") { 50 type = "new" 51 module_output = "basic" 52 sources = [ "geometry_node_test_ng.cpp" ] 53} 54 55ace_unittest("inspector_test_ng") { 56 type = "new" 57 module_output = "basic" 58 sources = [ "inspector_test_ng.cpp" ] 59} 60 61ace_unittest("simplified_inspector_test_ng") { 62 type = "new" 63 module_output = "basic" 64 sources = [ "simplified_inspector_test_ng.cpp" ] 65} 66 67ace_unittest("ui_node_gc_test_ng") { 68 type = "new" 69 module_output = "basic" 70 sources = [ "ui_node_gc_test_ng.cpp" ] 71} 72 73ace_unittest("ui_node_test_ng") { 74 type = "new" 75 module_output = "basic" 76 sources = [ "ui_node_test_ng.cpp" ] 77} 78 79ace_unittest("view_abstract_test_ng") { 80 type = "new" 81 module_output = "basic" 82 sources = [ 83 "view_abstract_test_ng.cpp", 84 "view_abstract_test_ng_for_property_config.cpp", 85 "view_abstract_test_ng_for_visual_effect.cpp", 86 "view_abstract_test_ng_new.cpp", 87 ] 88} 89 90ace_unittest("view_abstract_test_resetposition_ng") { 91 type = "new" 92 module_output = "basic" 93 sources = [ "view_abstract_test_resetposition_ng.cpp" ] 94} 95 96ace_unittest("view_full_update_model_ng_test") { 97 type = "new" 98 module_output = "basic" 99 sources = [ "view_full_update_model_ng_test.cpp" ] 100} 101 102ace_unittest("view_partial_update_model_test_ng") { 103 type = "new" 104 module_output = "basic" 105 sources = [ "view_partial_update_model_test_ng.cpp" ] 106} 107 108ace_unittest("observer_test_ng") { 109 type = "new" 110 module_output = "basic" 111 sources = [ "observer_test_ng.cpp" ] 112} 113 114ace_unittest("view_abstract_model_test_ng") { 115 type = "new" 116 module_output = "basic" 117 sources = [ "view_abstract_model_test_ng.cpp" ] 118} 119 120ace_unittest("short_cuts_little_test_ng") { 121 type = "new" 122 module_output = "basic" 123 sources = [ "short_cuts_little_test_ng.cpp" ] 124} 125 126ace_unittest("short_cuts_test_ng") { 127 type = "new" 128 module_output = "basic" 129 sources = [ "short_cuts_test_ng.cpp" ] 130} 131 132ace_unittest("extension_handler_test_ng") { 133 type = "new" 134 module_output = "basic" 135 sources = [ "extension_handler_test_ng.cpp" ] 136} 137 138ace_unittest("node_render_status_monitor_test_ng") { 139 type = "new" 140 module_output = "basic" 141 sources = [ "node_render_status_monitor_test_ng.cpp" ] 142} 143 144ace_unittest("thread_safe_node_test_ng") { 145 type = "new" 146 module_output = "basic" 147 sources = [ "thread_safe_node_test_ng.cpp" ] 148} 149 150group("core_base_unittest") { 151 testonly = true 152 deps = [ 153 ":distributed_ui_test_ng", 154 ":extension_handler_test_ng", 155 ":frame_node_drop_test_ng", 156 ":frame_node_test_ng", 157 ":geometry_node_test_ng", 158 ":inspector_test_ng", 159 ":node_render_status_monitor_test_ng", 160 ":observer_test_ng", 161 ":short_cuts_little_test_ng", 162 ":short_cuts_test_ng", 163 ":simplified_inspector_test_ng", 164 ":thread_safe_node_test_ng", 165 ":ui_node_gc_test_ng", 166 ":ui_node_test_ng", 167 ":view_abstract_model_test_ng", 168 ":view_abstract_test_ng", 169 ":view_full_update_model_ng_test", 170 ":view_partial_update_model_test_ng", 171 ":view_stack_processor_test_ng", 172 ] 173 174 if (ace_engine_feature_enable_split_mode && 175 defined(vendor_configs.ace_engine_advanced_split_mode_base_test_ng)) { 176 deps += vendor_configs.ace_engine_advanced_split_mode_base_test_ng 177 } 178} 179