10826e83eSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 20826e83eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 30826e83eSopenharmony_ci# you may not use this file except in compliance with the License. 40826e83eSopenharmony_ci# You may obtain a copy of the License at 50826e83eSopenharmony_ci# 60826e83eSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 70826e83eSopenharmony_ci# 80826e83eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 90826e83eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 100826e83eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110826e83eSopenharmony_ci# See the License for the specific language governing permissions and 120826e83eSopenharmony_ci# limitations under the License. 130826e83eSopenharmony_ci 140826e83eSopenharmony_ciimport("//build/test.gni") 150826e83eSopenharmony_ciimport("../../../web_aafwk.gni") 160826e83eSopenharmony_ci 170826e83eSopenharmony_cimodule_output_path = "web/webview" 180826e83eSopenharmony_ci 190826e83eSopenharmony_ciohos_unittest("napi_common_test") { 200826e83eSopenharmony_ci module_out_path = module_output_path 210826e83eSopenharmony_ci 220826e83eSopenharmony_ci sources = [ "napi_parse_utils_unittest.cpp" ] 230826e83eSopenharmony_ci 240826e83eSopenharmony_ci include_dirs = [ 250826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/common", 260826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webadsblockmanager", 270826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webasynccontroller", 280826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webcookiemanager", 290826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webdatabase", 300826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webfunction", 310826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webstorage", 320826e83eSopenharmony_ci "$webview_path/interfaces/kits/napi/webviewcontroller", 330826e83eSopenharmony_ci "$target_gen_dir/protos", 340826e83eSopenharmony_ci "$webview_path/interfaces/native", 350826e83eSopenharmony_ci "../../../ohos_adapter/ohos_resource_adapter/include", 360826e83eSopenharmony_ci ] 370826e83eSopenharmony_ci 380826e83eSopenharmony_ci deps = [ 390826e83eSopenharmony_ci "$webview_path/interfaces/native:ohweb", 400826e83eSopenharmony_ci "../../../ohos_adapter:nweb_ohos_adapter", 410826e83eSopenharmony_ci "//third_party/googletest:gmock_main", 420826e83eSopenharmony_ci "//third_party/googletest:gtest_main", 430826e83eSopenharmony_ci ] 440826e83eSopenharmony_ci 450826e83eSopenharmony_ci external_deps = [ 460826e83eSopenharmony_ci "ability_base:extractortool", 470826e83eSopenharmony_ci "ability_runtime:app_context", 480826e83eSopenharmony_ci "ace_engine:ace_container_scope", 490826e83eSopenharmony_ci "bundle_framework:appexecfwk_base", 500826e83eSopenharmony_ci "bundle_framework:appexecfwk_core", 510826e83eSopenharmony_ci "c_utils:utils", 520826e83eSopenharmony_ci "common_event_service:cesfwk_innerkits", 530826e83eSopenharmony_ci "hilog:libhilog", 540826e83eSopenharmony_ci "image_framework:image", 550826e83eSopenharmony_ci "image_framework:image_native", 560826e83eSopenharmony_ci "init:libbegetutil", 570826e83eSopenharmony_ci "ipc:ipc_core", 580826e83eSopenharmony_ci "napi:ace_napi", 590826e83eSopenharmony_ci "protobuf:protobuf_lite", 600826e83eSopenharmony_ci "samgr:samgr_proxy", 610826e83eSopenharmony_ci "webview:libnweb", 620826e83eSopenharmony_ci "window_manager:libwm", 630826e83eSopenharmony_ci ] 640826e83eSopenharmony_ci} 650826e83eSopenharmony_ci 660826e83eSopenharmony_cigroup("unittest") { 670826e83eSopenharmony_ci testonly = true 680826e83eSopenharmony_ci deps = [ ":napi_common_test" ] 690826e83eSopenharmony_ci} 70