• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_output_path = "web/webview"
17
18config("module_private_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    "//base/web/webview/ohos_adapter/interfaces",
23    "//base/web/webview/ohos_nweb/include",
24    "//foundation/graphic/graphic_2d/frameworks/surface/include",
25    "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
26    "//base/web/webview/interfaces/innerkits/ohos_nweb",
27    "//foundation/window/window_manager/interfaces/innerkits/wm",
28    "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
29    "//base/web/webview/test/unittest/common",
30    "//foundation/window/window_manager/wm/include",
31    "//foundation/ability/ability_runtime/interfaces/kits/native/ability/ability_runtime",
32    "//foundation/ability/ability_base/interfaces/kits/native/configuration/include",
33    "//foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include",
34    "//foundation/window/window_manager/interfaces/innerkits/dm",
35    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui",
36  ]
37}
38
39ohos_unittest("ohos_adapter_helper") {
40  module_out_path = module_output_path
41
42  sources = [
43    "//base/web/webview/test/unittest/common/nweb_create_window.cpp",
44    "ohos_adapter_helper_test.cpp",
45  ]
46
47  configs = [ ":module_private_config" ]
48
49  deps = [
50    "//base/web/webview/ohos_adapter:nweb_ohos_adapter",
51    "//base/web/webview/ohos_nweb:libnweb",
52    "//foundation/graphic/graphic_2d:libsurface",
53    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
54    "//foundation/window/window_manager/utils:libwmutil",
55    "//foundation/window/window_manager/wm:libwm",
56    "//third_party/googletest:gtest_main",
57  ]
58
59  external_deps = [
60    "ability_base:base",
61    "ability_base:want",
62    "ability_runtime:ability_context_native",
63    "ability_runtime:ability_manager",
64    "ace_engine:ace_uicontent",
65    "bundle_framework:appexecfwk_base",
66    "bundle_framework:appexecfwk_core",
67    "c_utils:utils",
68    "graphic_standard:surface",
69    "graphic_standard:window_animation",
70    "hicollie_native:libhicollie",
71    "hilog_native:libhilog",
72    "hisysevent_native:libhisysevent",
73    "imf:inputmethod_client",
74    "input:libmmi-client",
75    "ipc:ipc_core",
76    "multimedia_image_framework:image",
77    "multimedia_image_framework:image_native",
78    "napi:ace_napi",
79    "resource_management:global_resmgr",
80    "safwk:system_ability_fwk",
81    "samgr:samgr_proxy",
82  ]
83}
84group("unittest") {
85  testonly = true
86  deps = [ ":ohos_adapter_helper" ]
87}
88