1# Copyright (c) 2022-2025 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 = "webview/webview" 18 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "../../../../ohos_adapter/ohos_resource_adapter/include", 24 "../../../../ohos_adapter/system_properties_adapter/include", 25 ] 26} 27 28ohos_unittest("ohos_resource_adapter_test") { 29 module_out_path = module_output_path 30 31 sources = [ "ohos_resource_adapter_test.cpp" ] 32 33 configs = [ ":module_private_config" ] 34 35 deps = [ 36 "$webview_path/interfaces/native:ohweb", 37 "$webview_path/ohos_nweb:web_configs", 38 "../../../../ohos_adapter:nweb_ohos_adapter" 39 ] 40 41 external_deps = [ 42 "ability_base:extractortool", 43 "ability_runtime:app_context", 44 "ability_runtime:app_manager", 45 "bundle_framework:appexecfwk_core", 46 "c_utils:utils", 47 "googletest:gmock_main", 48 "googletest:gtest_main", 49 "hilog:libhilog", 50 "init:libbegetutil", 51 "libxml2:libxml2", 52 "relational_store:native_rdb", 53 "webview:libnweb", 54 "zlib:libz", 55 ] 56} 57 58group("unittest") { 59 testonly = true 60 deps = [ ":ohos_resource_adapter_test" ] 61} 62