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