• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15import("//foundation/window/window_manager/windowmanager_aafwk.gni")
16module_out_path = "window_manager/extension/window_extension"
17
18group("unittest") {
19  testonly = true
20
21  deps = [ ":extension_window_extension_proxy_test" ]
22}
23
24ohos_unittest("extension_window_extension_proxy_test") {
25  module_out_path = module_out_path
26
27  sources = [ "window_extension_proxy_test.cpp" ]
28
29  deps = [ ":window_extension_unittest_common" ]
30}
31
32## Build window_extension_unittest_common.a {{{
33config("window_extension_unittest_common_public_config") {
34  include_dirs = [
35    "//foundation/window/window_manager/interfaces/innerkits/wm",
36    "//foundation/window/window_manager/wm/include",
37    "//foundation/window/window_manager/extension/window_extension/include",
38    "//foundation/window/window_manager/extension/window_extension/include/zidl",
39    "//foundation/window/window_manager/extension/extension_connection/include",
40    "//foundation/window/window_manager/extension/extension_connection/include/zidl",
41    "//foundation/window/window_manager/interfaces/innerkits/extension",
42    "//third_party/googletest/googlemock/include",
43  ]
44}
45
46ohos_static_library("window_extension_unittest_common") {
47  visibility = [ ":*" ]
48  testonly = true
49
50  public_configs = [
51    ":window_extension_unittest_common_public_config",
52    "//foundation/window/window_manager/resources/config/build:coverage_flags",
53    "//foundation/window/window_manager/resources/config/build:testcase_flags",
54  ]
55
56  public_deps = [
57    "//commonlibrary/c_utils/base:utils",
58    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
59    "//foundation/multimedia/image_framework/interfaces/innerkits:image_native",
60    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
61    "//third_party/googletest:gmock",
62    "//third_party/googletest:gtest_main",
63  ]
64
65  deps = [
66    "//foundation/window/window_manager/extension/extension_connection:libwindow_extension_client",
67    "//foundation/window/window_manager/extension/window_extension:libwindow_extension",
68    "//foundation/window/window_manager/interfaces/kits/napi/window_runtime:window_native_kit",
69    "//foundation/window/window_manager/wm:libwm",
70  ]
71
72  external_deps = [
73    "hilog_native:libhilog",
74    "input:libmmi-client",
75    "ipc:ipc_core",
76  ]
77  subsystem_name = "window"
78  part_name = "window_manager"
79}
80