window_window_manager/test/systemtest/extension/BUILD.gn
赵聪 ca47608ece uiextension add tdd 0810
Signed-off-by: 赵聪 <zhaocong33@h-partners.com>
2024-08-10 21:06:01 +08:00

108 lines
3.1 KiB
Plaintext

# Copyright (c) 2022 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")
module_out_path = "window_manager/extension"
group("systemtest") {
testonly = true
deps = [
":modal_system_ui_extension_test",
":window_extension_connection_test",
]
}
config("we_systemtest_common_public_config") {
include_dirs = [
"../../../extension/extension_connection/include",
"../../../extension/extension_connection/include/zidl",
"../../../extension/extension_connection/src",
"../../../extension/window_extension/include/zidl",
"../../../interfaces/innerkits/extension",
"../../../interfaces/innerkits/wm",
"../../../utils/include",
"../../common/mock",
"//third_party/googletest/googlemock/include",
]
}
ohos_systemtest("modal_system_ui_extension_test") {
module_out_path = module_out_path
sources = [
"../../../window_scene/test/mock/mock_message_parcel.cpp",
"modal_system_ui_extension_test.cpp",
]
include_dirs = [ "../../../window_scene/test/mock" ]
public_configs = [
":we_systemtest_common_public_config",
"../../../resources/config/build:coverage_flags",
"../../../resources/config/build:testcase_flags",
]
public_deps = [
"../../../extension/modal_system_ui_extension:libmodal_system_ui_extension_client",
"../../../window_scene/interfaces/innerkits:libwsutils",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest_main",
]
external_deps = [
"ability_base:session_info",
"ability_base:want",
"ability_runtime:ability_manager",
"c_utils:utils",
"hilog:libhilog",
"input:libmmi-client",
"ipc:ipc_single",
]
}
## SystemTest window_extension_connection_test {{{
ohos_systemtest("window_extension_connection_test") {
module_out_path = module_out_path
sources = [ "extension_connection_test.cpp" ]
public_configs = [
":we_systemtest_common_public_config",
"../../../resources/config/build:coverage_flags",
"../../../resources/config/build:testcase_flags",
]
public_deps = [
"../../../extension/extension_connection:libwindow_extension_client",
"../../../window_scene/session:scene_session",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest_main",
]
external_deps = [
"ability_base:session_info",
"ability_base:want",
"ability_runtime:ability_manager",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"hitrace:hitrace_meter",
"input:libmmi-client",
"ipc:ipc_single",
]
}
## SystemTest window_extension_connection_test }}}