1# Copyright (c) 2022 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") 15 16module_out_path = "window_manager/extension" 17 18group("systemtest") { 19 testonly = true 20 deps = [ 21 ":modal_system_ui_extension_test", 22 ":window_extension_connection_test", 23 ] 24} 25 26config("we_systemtest_common_public_config") { 27 include_dirs = [ 28 "../../../extension/extension_connection/include", 29 "../../../interfaces/innerkits/extension", 30 "../../../interfaces/innerkits/wm", 31 "//third_party/googletest/googlemock/include", 32 ] 33} 34 35ohos_systemtest("modal_system_ui_extension_test") { 36 module_out_path = module_out_path 37 38 sources = [ "modal_system_ui_extension_test.cpp" ] 39 40 public_configs = [ 41 ":we_systemtest_common_public_config", 42 "../../../resources/config/build:coverage_flags", 43 "../../../resources/config/build:testcase_flags", 44 ] 45 46 public_deps = [ 47 "../../../extension/modal_system_ui_extension:libmodal_system_ui_extension_client", 48 "../../../window_scene/interfaces/innerkits:libwsutils", 49 "//third_party/googletest:gmock", 50 "//third_party/googletest:gtest_main", 51 ] 52 53 external_deps = [ 54 "ability_base:session_info", 55 "ability_base:want", 56 "ability_runtime:ability_manager", 57 "c_utils:utils", 58 "hilog:libhilog", 59 "input:libmmi-client", 60 "ipc:ipc_single", 61 ] 62} 63 64## SystemTest window_extension_connection_test {{{ 65ohos_systemtest("window_extension_connection_test") { 66 module_out_path = module_out_path 67 68 sources = [ "extension_connection_test.cpp" ] 69 70 public_configs = [ 71 ":we_systemtest_common_public_config", 72 "../../../resources/config/build:coverage_flags", 73 "../../../resources/config/build:testcase_flags", 74 ] 75 76 public_deps = [ 77 "../../../extension/extension_connection:libwindow_extension_client", 78 "../../../window_scene/session:scene_session", 79 "//third_party/googletest:gmock", 80 "//third_party/googletest:gtest_main", 81 ] 82 83 external_deps = [ 84 "ability_base:want", 85 "c_utils:utils", 86 "hilog:libhilog", 87 "input:libmmi-client", 88 ] 89} 90 91## SystemTest window_extension_connection_test }}} 92 93