• 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/rotation"
18ws_unittest_common = "../:ws_unittest_common"
19
20ohos_unittest("ws_scene_session_rotation_test") {
21  module_out_path = module_out_path
22
23  sources = [ "scene_session_rotation_test.cpp" ]
24
25  deps = [ ws_unittest_common ]
26
27  external_deps = [
28    "ability_base:session_info",
29    "ability_runtime:ability_manager",
30    "ability_runtime:app_context",
31    "c_utils:utils",
32    "googletest:gmock",
33    "googletest:gtest",
34    "googletest:gtest_main",
35    "graphic_2d:librender_service_client",
36    "graphic_2d:window_animation",
37    "hilog:libhilog",
38    "image_framework:image_native",
39    "input:libmmi-napi",
40  ]
41}
42
43ohos_unittest("ws_session_stage_proxy_rotation_test") {
44  module_out_path = module_out_path
45
46  sources = [ "session_stage_proxy_rotation_test.cpp" ]
47
48  include_dirs = [ "${window_base_path}/window_scene/test/mock" ]
49
50  deps = [ ws_unittest_common ]
51
52  external_deps = [
53    "ability_base:base",
54    "ability_runtime:ability_manager",
55    "c_utils:utils",
56    "googletest:gmock",
57    "googletest:gtest",
58    "googletest:gtest_main",
59    "graphic_2d:librender_service_client",
60    "graphic_2d:window_animation",
61    "hilog:libhilog",
62    "image_framework:image_native",
63    "input:libmmi-napi",
64  ]
65}
66
67ohos_unittest("ws_session_stage_stub_rotation_test") {
68  module_out_path = module_out_path
69
70  sources = [ "session_stage_stub_rotation_test.cpp" ]
71
72  deps = [ ws_unittest_common ]
73
74  external_deps = [
75    "ability_runtime:ability_manager",
76    "ability_runtime:app_manager",
77    "c_utils:utils",
78    "googletest:gmock",
79    "googletest:gtest",
80    "googletest:gtest_main",
81    "graphic_2d:librender_service_base",
82    "graphic_2d:librender_service_client",
83    "graphic_2d:window_animation",
84    "hilog:libhilog",
85    "input:libmmi-napi",
86  ]
87}
88
89ohos_unittest("ws_window_session_property_rotation_test") {
90  module_out_path = module_out_path
91
92  sources = [ "window_session_property_rotation_test.cpp" ]
93
94  deps = [ ws_unittest_common ]
95
96  external_deps = [
97    "c_utils:utils",
98    "graphic_2d:librender_service_client",
99    "image_framework:image_native",
100  ]
101}
102
103ohos_unittest("ws_scene_session_manager_rotation_test") {
104  module_out_path = module_out_path
105
106  sources = [ "scene_session_manager_rotation_test.cpp" ]
107
108  deps = [ ws_unittest_common ]
109
110  external_deps = [
111    "ability_base:configuration",
112    "ability_base:session_info",
113    "ability_runtime:ability_context_native",
114    "ability_runtime:ability_manager",
115    "ability_runtime:mission_info",
116    "bundle_framework:appexecfwk_base",
117    "bundle_framework:appexecfwk_core",
118    "c_utils:utils",
119    "eventhandler:libeventhandler",
120    "googletest:gmock",
121    "googletest:gtest",
122    "googletest:gtest_main",
123    "graphic_2d:librender_service_client",
124    "graphic_2d:window_animation",
125    "hilog:libhilog",
126    "image_framework:image_native",
127    "input:libmmi-napi",
128  ]
129}
130