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    "../../../extension/extension_connection/include/zidl",
30    "../../../extension/extension_connection/src",
31    "../../../extension/window_extension/include/zidl",
32    "../../../interfaces/innerkits/extension",
33    "../../../interfaces/innerkits/wm",
34    "../../../utils/include",
35    "../../common/mock",
36    "//third_party/googletest/googlemock/include",
37  ]
38}
39
40ohos_systemtest("modal_system_ui_extension_test") {
41  module_out_path = module_out_path
42
43  sources = [
44    "../../../window_scene/test/mock/mock_message_parcel.cpp",
45    "modal_system_ui_extension_test.cpp",
46  ]
47
48  include_dirs = [ "../../../window_scene/test/mock" ]
49
50  public_configs = [
51    ":we_systemtest_common_public_config",
52    "../../../resources/config/build:coverage_flags",
53    "../../../resources/config/build:testcase_flags",
54  ]
55
56  public_deps = [
57    "../../../extension/modal_system_ui_extension:libmodal_system_ui_extension_client",
58    "../../../window_scene/interfaces/innerkits:libwsutils",
59    "//third_party/googletest:gmock",
60    "//third_party/googletest:gtest_main",
61  ]
62
63  external_deps = [
64    "ability_base:session_info",
65    "ability_base:want",
66    "ability_runtime:ability_manager",
67    "c_utils:utils",
68    "hilog:libhilog",
69    "input:libmmi-client",
70    "ipc:ipc_single",
71  ]
72}
73
74## SystemTest window_extension_connection_test {{{
75ohos_systemtest("window_extension_connection_test") {
76  module_out_path = module_out_path
77
78  sources = [ "extension_connection_test.cpp" ]
79
80  public_configs = [
81    ":we_systemtest_common_public_config",
82    "../../../resources/config/build:coverage_flags",
83    "../../../resources/config/build:testcase_flags",
84  ]
85
86  public_deps = [
87    "../../../extension/extension_connection:libwindow_extension_client",
88    "../../../window_scene/session:scene_session",
89    "//third_party/googletest:gmock",
90    "//third_party/googletest:gtest_main",
91  ]
92
93  external_deps = [
94    "ability_base:session_info",
95    "ability_base:want",
96    "ability_runtime:ability_manager",
97    "c_utils:utils",
98    "graphic_2d:librender_service_client",
99    "hilog:libhilog",
100    "hitrace:hitrace_meter",
101    "input:libmmi-client",
102    "ipc:ipc_single",
103  ]
104}
105
106## SystemTest window_extension_connection_test }}}
107
108