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  ]
40}
41
42ace_unittest("frame_node_drop_test_ng") {
43  type = "new"
44  module_output = "basic"
45  sources = [ "frame_node_drop_test_ng.cpp" ]
46}
47
48ace_unittest("geometry_node_test_ng") {
49  type = "new"
50  module_output = "basic"
51  sources = [ "geometry_node_test_ng.cpp" ]
52}
53
54ace_unittest("inspector_test_ng") {
55  type = "new"
56  module_output = "basic"
57  sources = [ "inspector_test_ng.cpp" ]
58}
59
60ace_unittest("ui_node_test_ng") {
61  type = "new"
62  module_output = "basic"
63  sources = [ "ui_node_test_ng.cpp" ]
64}
65
66ace_unittest("view_abstract_test_ng") {
67  type = "new"
68  module_output = "basic"
69  sources = [
70    "view_abstract_test_ng.cpp",
71    "view_abstract_test_ng_for_property_config.cpp",
72    "view_abstract_test_ng_new.cpp",
73  ]
74}
75
76ace_unittest("view_full_update_model_ng_test") {
77  type = "new"
78  module_output = "basic"
79  sources = [ "view_full_update_model_ng_test.cpp" ]
80}
81
82ace_unittest("view_partial_update_model_test_ng") {
83  type = "new"
84  module_output = "basic"
85  sources = [ "view_partial_update_model_test_ng.cpp" ]
86}
87
88ace_unittest("observer_test_ng") {
89  type = "new"
90  module_output = "basic"
91  sources = [ "observer_test_ng.cpp" ]
92}
93
94ace_unittest("view_abstract_model_test_ng") {
95  type = "new"
96  module_output = "basic"
97  sources = [ "view_abstract_model_test_ng.cpp" ]
98}
99
100ace_unittest("short_cuts_little_test_ng") {
101  type = "new"
102  module_output = "basic"
103  sources = [ "short_cuts_little_test_ng.cpp" ]
104}
105
106ace_unittest("short_cuts_test_ng") {
107  type = "new"
108  module_output = "basic"
109  sources = [ "short_cuts_test_ng.cpp" ]
110}
111
112group("core_base_unittest") {
113  testonly = true
114  deps = [
115    ":distributed_ui_test_ng",
116    ":frame_node_drop_test_ng",
117    ":frame_node_test_ng",
118    ":geometry_node_test_ng",
119    ":inspector_test_ng",
120    ":observer_test_ng",
121    ":short_cuts_little_test_ng",
122    ":short_cuts_test_ng",
123    ":ui_node_test_ng",
124    ":view_abstract_model_test_ng",
125    ":view_abstract_test_ng",
126    ":view_full_update_model_ng_test",
127    ":view_partial_update_model_test_ng",
128    ":view_stack_processor_test_ng",
129  ]
130
131  if (ace_engine_feature_enable_split_mode &&
132      defined(vendor_configs.ace_engine_advanced_split_mode_base_test_ng)) {
133    deps += vendor_configs.ace_engine_advanced_split_mode_base_test_ng
134  }
135}
136