• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//build/test.gni")
16import("../../../web_aafwk.gni")
17
18module_output_path = "webview/webview"
19
20ohos_unittest("napi_common_test") {
21  module_out_path = module_output_path
22
23  sources = [ "napi_parse_utils_unittest.cpp" ]
24
25  include_dirs = [
26    "$webview_path/interfaces/kits/napi/common",
27    "$webview_path/interfaces/kits/napi/webadsblockmanager",
28    "$webview_path/interfaces/kits/napi/webasynccontroller",
29    "$webview_path/interfaces/kits/napi/webcookiemanager",
30    "$webview_path/interfaces/kits/napi/webdatabase",
31    "$webview_path/interfaces/kits/napi/webfunction",
32    "$webview_path/interfaces/kits/napi/webstorage",
33    "$webview_path/interfaces/kits/napi/webviewcontroller",
34    "$target_gen_dir/protos",
35    "$webview_path/interfaces/native",
36    "../../../ohos_adapter/ohos_resource_adapter/include",
37  ]
38
39  use_exceptions = true
40
41  deps = [
42    "$webview_path/interfaces/native:ohweb",
43    "$webview_path/ohos_adapter:nweb_ohos_adapter",
44  ]
45
46  external_deps = [
47    "ability_base:extractortool",
48    "ability_runtime:app_context",
49    "ace_engine:ace_container_scope",
50    "bundle_framework:appexecfwk_base",
51    "bundle_framework:appexecfwk_core",
52    "c_utils:utils",
53    "common_event_service:cesfwk_innerkits",
54    "googletest:gmock_main",
55    "googletest:gtest_main",
56    "hilog:libhilog",
57    "image_framework:image",
58    "image_framework:image_native",
59    "init:libbegetutil",
60    "ipc:ipc_core",
61    "napi:ace_napi",
62    "protobuf:protobuf_lite",
63    "samgr:samgr_proxy",
64    "webview:libnweb",
65    "window_manager:libwm",
66  ]
67}
68
69group("unittest") {
70  testonly = true
71  deps = [ ":napi_common_test" ]
72}
73