# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("../../../../windowmanager_aafwk.gni") module_out_path = "window_manager/window_manager/window_scene/window_pattern" ws_unittest_common = "../:ws_unittest_common" ohos_unittest("window_pattern_snapshot_test") { module_out_path = module_out_path sources = [ "window_pattern_snapshot_test.cpp" ] include_dirs = [ "${window_base_path}/window_scene/session/host/include" ] deps = [ ws_unittest_common ] external_deps = [ "ability_base:configuration", "ability_base:session_info", "ability_runtime:ability_context_native", "ability_runtime:mission_info", "ability_runtime:session_handler", "accessibility:accessibility_common", "accessibility:accessibility_interface", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "bundle_framework:libappexecfwk_common", "c_utils:utils", "eventhandler:libeventhandler", "googletest:gmock", "googletest:gtest", "googletest:gtest_main", "graphic_2d:librender_service_client", "graphic_2d:window_animation", "hilog:libhilog", "image_framework:image_native", "input:libmmi-napi", "preferences:native_preferences", ] } ohos_unittest("window_pattern_starting_window_test") { module_out_path = module_out_path sources = [ "window_pattern_starting_window_test.cpp" ] deps = [ ws_unittest_common ] external_deps = [ "ability_base:configuration", "ability_base:session_info", "ability_runtime:ability_context_native", "ability_runtime:mission_info", "ability_runtime:session_handler", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "bundle_framework:libappexecfwk_common", "c_utils:utils", "eventhandler:libeventhandler", "graphic_2d:librender_service_base", "graphic_2d:librender_service_client", "graphic_2d:window_animation", "hilog:libhilog", "input:libmmi-napi", "relational_store:native_rdb", ] } ohos_unittest("window_pattern_starting_window_rdb_test") { module_out_path = module_out_path sources = [ "window_pattern_starting_window_rdb_test.cpp" ] deps = [ ws_unittest_common ] external_deps = [ "bundle_framework:libappexecfwk_common", "c_utils:utils", "googletest:gmock", "googletest:gtest", "googletest:gtest_main", "graphic_2d:librender_service_base", "graphic_2d:librender_service_client", "relational_store:native_rdb", ] }