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/nativecommon", 27 "$webview_path/interfaces/kits/napi/common", 28 "$webview_path/interfaces/kits/napi/webadsblockmanager", 29 "$webview_path/interfaces/kits/napi/webasynccontroller", 30 "$webview_path/interfaces/kits/napi/webcookiemanager", 31 "$webview_path/interfaces/kits/napi/webdatabase", 32 "$webview_path/interfaces/kits/napi/webfunction", 33 "$webview_path/interfaces/kits/napi/webstorage", 34 "$webview_path/interfaces/kits/napi/webviewcontroller", 35 "$target_gen_dir/protos", 36 "$webview_path/interfaces/native", 37 "../../../ohos_adapter/ohos_resource_adapter/include", 38 ] 39 40 use_exceptions = true 41 42 deps = [ 43 "$webview_path/interfaces/native:ohweb", 44 "$webview_path/ohos_adapter:nweb_ohos_adapter", 45 ] 46 47 external_deps = [ 48 "ability_base:extractortool", 49 "ability_runtime:app_context", 50 "ace_engine:ace_container_scope", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "c_utils:utils", 54 "common_event_service:cesfwk_innerkits", 55 "googletest:gmock_main", 56 "googletest:gtest_main", 57 "hilog:libhilog", 58 "image_framework:image", 59 "image_framework:image_native", 60 "init:libbegetutil", 61 "ipc:ipc_core", 62 "napi:ace_napi", 63 "protobuf:protobuf_lite", 64 "samgr:samgr_proxy", 65 "webview:libnweb", 66 "window_manager:libwm", 67 ] 68} 69 70group("unittest") { 71 testonly = true 72 deps = [ ":napi_common_test" ] 73} 74