0a350dbc创建于 3月10日历史提交
# Copyright (c) 2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//base/web/webview/web_aafwk.gni")
import("//build/test.gni")
import("../../../web_aafwk.gni")

module_output_path = "webview/Web_Framework"

ohos_unittest("napi_common_test") {
  module_out_path = module_output_path

  sources = [ "napi_parse_utils_unittest.cpp" ]

  include_dirs = [
    "$webview_path/interfaces/kits/nativecommon",
    "$webview_path/interfaces/kits/napi/common",
    "$webview_path/interfaces/kits/napi/webadsblockmanager",
    "$webview_path/interfaces/kits/napi/webasynccontroller",
    "$webview_path/interfaces/kits/napi/webcookiemanager",
    "$webview_path/interfaces/kits/napi/webdatabase",
    "$webview_path/interfaces/kits/napi/webfunction",
    "$webview_path/interfaces/kits/napi/webstorage",
    "$webview_path/interfaces/kits/napi/webviewcontroller",
    "$target_gen_dir/protos",
    "$webview_path/interfaces/native",
    "../../../ohos_adapter/ohos_resource_adapter/include",
  ]

  use_exceptions = true

  deps = [
    "$webview_path/interfaces/native:ohweb",
    "$webview_path/ohos_adapter:nweb_ohos_adapter",
  ]

  deps += [
    "$webview_path/ohos_nweb:libnweb",
  ]

  external_deps = [
    "ability_base:extractortool",
    "ability_runtime:app_context",
    "ace_engine:ace_container_scope",
    "bundle_framework:appexecfwk_base",
    "bundle_framework:appexecfwk_core",
    "c_utils:utils",
    "common_event_service:cesfwk_innerkits",
    "googletest:gmock_main",
    "googletest:gtest_main",
    "hilog:libhilog",
    "image_framework:image",
    "image_framework:image_native",
    "init:libbegetutil",
    "ipc:ipc_core",
    "napi:ace_napi",
    "protobuf:protobuf_lite",
    "samgr:samgr_proxy",
    "window_manager:libwm",
  ]
}

group("unittest") {
  testonly = true
  deps = [ ":napi_common_test" ]
}