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/layout" 18ws_unittest_common = "../:ws_unittest_common" 19 20ohos_unittest("ws_layout_test") { 21 module_out_path = module_out_path 22 23 include_dirs = [ "${window_base_path}/window_scene/test/mock" ] 24 25 cflags_cc = [ "-Wno-thread-safety" ] 26 27 sources = [ 28 "keyboard_session_layout_test.cpp", 29 "layout_controller_test.cpp", 30 "main_session_layout_test.cpp", 31 "scb_system_session_layout_test.cpp", 32 "scene_session_layout_test.cpp", 33 "scene_session_manager_layout_test.cpp", 34 "session_layout_test.cpp", 35 "session_stub_layout_test.cpp", 36 "sub_session_layout_test.cpp", 37 ] 38 39 deps = [ ws_unittest_common ] 40 41 external_deps = [ 42 "ability_base:base", 43 "ability_base:configuration", 44 "ability_base:session_info", 45 "ability_base:want", 46 "ability_runtime:ability_context_native", 47 "ability_runtime:ability_manager", 48 "ability_runtime:app_manager", 49 "ability_runtime:mission_info", 50 "ability_runtime:process_options", 51 "ability_runtime:session_handler", 52 "accessibility:accessibility_common", 53 "accessibility:accessibility_interface", 54 "bundle_framework:appexecfwk_base", 55 "bundle_framework:appexecfwk_core", 56 "bundle_framework:libappexecfwk_common", 57 "c_utils:utils", 58 "eventhandler:libeventhandler", 59 "ffrt:libffrt", 60 "googletest:gmock", 61 "googletest:gtest", 62 "googletest:gtest_main", 63 "graphic_2d:librender_service_base", 64 "graphic_2d:librender_service_client", 65 "graphic_2d:window_animation", 66 "hilog:libhilog", 67 "image_framework:image_native", 68 "input:libmmi-client", 69 "input:libmmi-napi", 70 "ipc:ipc_single", 71 "libxml2:libxml2", 72 "napi:ace_napi", 73 "safwk:system_ability_fwk", 74 ] 75 76 public_external_deps = [ "accessibility:accessibility_interface" ] 77} 78