• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("../../../config.gni")
17
18module_output_path = "webview/webview"
19
20config("module_private_config") {
21  visibility = [ ":*" ]
22
23  include_dirs = [
24    "$webview_path/arkweb_utils",
25    "../../../ohos_nweb/include/",
26    "../../../ohos_adapter/hiviewdfx_adapter/include/",
27    "../../../ohos_adapter/system_properties_adapter/include",
28    "../../../ohos_interface/include/ohos_adapter",
29  ]
30}
31
32ohos_unittest("arkweb_utils_test") {
33  module_out_path = module_output_path
34  sources = [ "arkweb_utils_test.cpp" ]
35  configs = [ ":module_private_config" ]
36
37  deps = [
38    "$webview_path/arkweb_utils:libarkweb_utils",
39    "$webview_path/ohos_adapter:nweb_ohos_adapter"
40  ]
41
42  external_deps = [
43    "ability_runtime:app_context",
44    "ability_runtime:app_manager",
45    "access_token:libaccesstoken_sdk",
46    "access_token:libnativetoken",
47    "access_token:libtoken_setproc",
48    "audio_framework:audio_capturer",
49    "bundle_framework:appexecfwk_core",
50    "c_utils:utils",
51    "googletest:gmock_main",
52    "googletest:gtest_main",
53    "hilog:libhilog",
54    "cJSON:cjson",
55    "bundle_framework:appexecfwk_base",
56    "graphic_2d:librender_service_client",
57    "init:libbegetutil",
58    "webview:libnweb",
59    "window_manager:libwm",
60  ]
61}
62
63group("unittest") {
64  testonly = true
65  deps = [ ":arkweb_utils_test" ]
66}