• 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("//base/web/webview/web_aafwk.gni")
15import("//base/web/webview/web_aafwk.gni")
16import("//build/test.gni")
17import("$webview_path/config.gni")
18
19module_output_path = "webview/webview"
20
21config("module_private_config") {
22  visibility = [ ":*" ]
23
24  include_dirs = [ "../common" ]
25
26  if (webview_print_enable) {
27    defines = [ "NWEB_PRINT_ENABLE" ]
28  }
29}
30
31ohos_unittest("ohos_adapter_helper_test") {
32  module_out_path = module_output_path
33
34  sources = [
35    "../common/nweb_create_window.cpp",
36    "ohos_adapter_helper_test.cpp",
37  ]
38
39  configs = [ ":module_private_config" ]
40
41  deps = [ "$webview_path/ohos_adapter:nweb_ohos_adapter" ]
42
43  external_deps = [
44    "ability_base:base",
45    "ability_base:want",
46    "ability_runtime:ability_context_native",
47    "ability_runtime:ability_manager",
48    "bundle_framework:appexecfwk_base",
49    "bundle_framework:appexecfwk_core",
50    "c_utils:utils",
51    "googletest:gtest_main",
52    "graphic_2d:librender_service_base",
53    "graphic_2d:librender_service_client",
54    "graphic_2d:window_animation",
55    "graphic_surface:surface",
56    "hilog:libhilog",
57    "hisysevent:libhisysevent",
58    "image_framework:image",
59    "image_framework:image_native",
60    "imf:inputmethod_client",
61    "input:libmmi-client",
62    "ipc:ipc_core",
63    "napi:ace_napi",
64    "resource_management:global_resmgr",
65    "safwk:system_ability_fwk",
66    "samgr:samgr_proxy",
67    "webview:libnweb",
68    "window_manager:libwm",
69  ]
70}
71group("unittest") {
72  testonly = true
73  deps = [ ":ohos_adapter_helper_test" ]
74}
75