• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("../../../../windowmanager_aafwk.gni")
16
17module_out_path = "window_manager/window_manager/window_scene/window_pattern"
18ws_unittest_common = "../:ws_unittest_common"
19
20ohos_unittest("window_pattern_snapshot_test") {
21  module_out_path = module_out_path
22  sources = [ "window_pattern_snapshot_test.cpp" ]
23  include_dirs = [ "${window_base_path}/window_scene/session/host/include" ]
24  deps = [ ws_unittest_common ]
25  external_deps = [
26    "ability_base:configuration",
27    "ability_base:session_info",
28    "ability_runtime:ability_context_native",
29    "ability_runtime:mission_info",
30    "ability_runtime:session_handler",
31    "accessibility:accessibility_common",
32    "accessibility:accessibility_interface",
33    "bundle_framework:appexecfwk_base",
34    "bundle_framework:appexecfwk_core",
35    "bundle_framework:libappexecfwk_common",
36    "c_utils:utils",
37    "eventhandler:libeventhandler",
38    "googletest:gmock",
39    "googletest:gtest",
40    "googletest:gtest_main",
41    "graphic_2d:librender_service_client",
42    "graphic_2d:window_animation",
43    "hilog:libhilog",
44    "image_framework:image_native",
45    "input:libmmi-napi",
46    "preferences:native_preferences",
47  ]
48}
49
50ohos_unittest("window_pattern_starting_window_test") {
51  module_out_path = module_out_path
52
53  sources = [ "window_pattern_starting_window_test.cpp" ]
54  deps = [ ws_unittest_common ]
55
56  external_deps = [
57    "ability_base:configuration",
58    "ability_base:session_info",
59    "ability_runtime:ability_context_native",
60    "ability_runtime:mission_info",
61    "ability_runtime:session_handler",
62    "bundle_framework:appexecfwk_base",
63    "bundle_framework:appexecfwk_core",
64    "bundle_framework:libappexecfwk_common",
65    "c_utils:utils",
66    "eventhandler:libeventhandler",
67    "graphic_2d:librender_service_base",
68    "graphic_2d:librender_service_client",
69    "graphic_2d:window_animation",
70    "hilog:libhilog",
71    "input:libmmi-napi",
72    "relational_store:native_rdb",
73  ]
74}
75
76ohos_unittest("window_pattern_starting_window_rdb_test") {
77  module_out_path = module_out_path
78  sources = [ "window_pattern_starting_window_rdb_test.cpp" ]
79  deps = [ ws_unittest_common ]
80  external_deps = [
81    "bundle_framework:libappexecfwk_common",
82    "c_utils:utils",
83    "googletest:gmock",
84    "googletest:gtest",
85    "googletest:gtest_main",
86    "graphic_2d:librender_service_base",
87    "graphic_2d:librender_service_client",
88    "relational_store:native_rdb",
89  ]
90}
91