• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//foundation/window/window_manager/windowmanager_aafwk.gni")
16
17module_out_path = "window_manager/window_manager/window_scene/animation"
18ws_unittest_common = "../:ws_unittest_common"
19
20ohos_unittest("ws_window_session_property_animation_test") {
21  module_out_path = module_out_path
22
23  sources = [ "window_session_property_animation_test.cpp" ]
24
25  deps = [ ws_unittest_common ]
26
27  external_deps = [
28    "c_utils:utils",
29    "googletest:gmock",
30    "googletest:gtest",
31    "googletest:gtest_main",
32    "graphic_2d:librender_service_client",
33    "image_framework:image_native",
34    "input:libmmi-client",
35    "input:libmmi-napi",
36  ]
37}
38
39ohos_unittest("ws_session_proxy_animation_test") {
40  module_out_path = module_out_path
41
42  include_dirs = [
43    "${window_base_path}/window_scene/session/host/include/zidl",
44    "${window_base_path}/window_scene/test/mock",
45  ]
46  sources = [ "session_proxy_animation_test.cpp" ]
47
48  deps = [ ws_unittest_common ]
49
50  external_deps = [
51    "bundle_framework:appexecfwk_base",
52    "c_utils:utils",
53    "googletest:gmock",
54    "googletest:gtest",
55    "googletest:gtest_main",
56    "graphic_2d:librender_service_client",
57    "image_framework:image_native",
58    "input:libmmi-client",
59    "input:libmmi-napi",
60  ]
61}
62
63ohos_unittest("ws_scene_session_animation_test") {
64  module_out_path = module_out_path
65
66  sources = [ "scene_session_animation_test.cpp" ]
67
68  cflags_cc = [ "-Wno-thread-safety" ]
69
70  deps = [ ws_unittest_common ]
71
72  external_deps = [
73    "ability_base:session_info",
74    "ability_runtime:app_context",
75    "c_utils:utils",
76    "googletest:gmock",
77    "googletest:gtest",
78    "googletest:gtest_main",
79    "graphic_2d:librender_service_client",
80    "hilog:libhilog",
81    "image_framework:image_native",
82    "input:libmmi-client",
83    "input:libmmi-napi",
84  ]
85}
86
87ohos_unittest("ws_ui_effect_controller_test") {
88  module_out_path = module_out_path
89
90  include_dirs = [
91    "${window_base_path}/window_scene/session/host/include",
92    "${window_base_path}/utils/include",
93  ]
94
95  sources = [
96    "ui_effect_controller_test.cpp",
97    "${window_base_path}/window_scene/test/mock/mock_accesstoken_kit.cpp",
98  ]
99
100  cflags_cc = [ "-Wno-thread-safety" ]
101
102  deps = [ ws_unittest_common ]
103
104  external_deps = [
105    "ability_base:session_info",
106    "ability_runtime:app_context",
107    "ability_runtime:runtime",
108    "access_token:libaccesstoken_sdk",
109    "access_token:libtokenid_sdk",
110    "napi:ace_napi",
111    "c_utils:utils",
112    "ipc:ipc_single",
113    "googletest:gmock",
114    "googletest:gtest",
115    "googletest:gtest_main",
116    "graphic_2d:librender_service_client",
117    "hilog:libhilog",
118    "image_framework:image_native",
119  ]
120}
121
122ohos_unittest("ws_ui_effect_controller_proxy_test") {
123  module_out_path = module_out_path
124
125  include_dirs = [
126    "${window_base_path}/window_scene/session/host/include",
127    "${window_base_path}/utils/include",
128  ]
129
130  sources = [
131    "ui_effect_controller_proxy_test.cpp",
132    "../../mock/mock_message_parcel.cpp",
133  ]
134
135  cflags_cc = [ "-Wno-thread-safety" ]
136
137  deps = [ ws_unittest_common ]
138
139  external_deps = [
140    "ability_base:session_info",
141    "ability_runtime:app_context",
142    "ability_runtime:runtime",
143    "napi:ace_napi",
144    "c_utils:utils",
145    "googletest:gmock",
146    "googletest:gtest",
147    "googletest:gtest_main",
148    "graphic_2d:librender_service_client",
149    "hilog:libhilog",
150    "image_framework:image_native",
151  ]
152}
153
154ohos_unittest("ws_ui_effect_controller_stub_test") {
155  module_out_path = module_out_path
156
157  include_dirs = [
158    "${window_base_path}/window_scene/session/host/include",
159    "${window_base_path}/utils/include",
160  ]
161
162  sources = [
163    "ui_effect_controller_stub_test.cpp",
164  ]
165
166  cflags_cc = [ "-Wno-thread-safety" ]
167
168  deps = [ ws_unittest_common ]
169
170  external_deps = [
171    "ability_base:session_info",
172    "ability_runtime:app_context",
173    "ability_runtime:runtime",
174    "napi:ace_napi",
175    "c_utils:utils",
176    "googletest:gmock",
177    "googletest:gtest",
178    "googletest:gtest_main",
179    "graphic_2d:librender_service_client",
180    "hilog:libhilog",
181    "image_framework:image_native",
182  ]
183}