# 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("//build/test.gni") import("../../../web_aafwk.gni") module_output_path = "web/webview" ohos_unittest("napi_common_test") { module_out_path = module_output_path sources = [ "napi_parse_utils_unittest.cpp" ] include_dirs = [ "$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", "../../../ohos_adapter:nweb_ohos_adapter", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:extractortool", "ability_runtime:app_context", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "common_event_service:cesfwk_innerkits", "hilog:libhilog", "image_framework:image", "image_framework:image_native", "init:libbegetutil", "ipc:ipc_core", "napi:ace_napi", "protobuf:protobuf_lite", "samgr:samgr_proxy", "webview:libnweb", "window_manager:libwm", ] } group("unittest") { testonly = true deps = [ ":napi_common_test" ] }