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("../../../config.gni") 17 18module_output_path = "webview/webview" 19 20config("module_private_config") { 21 visibility = [ ":*" ] 22 23 include_dirs = [ 24 "$webview_path/sa/include", 25 "$webview_path/ohos_nweb/include", 26 "${target_gen_dir}/../../../sa", 27 ] 28} 29 30ohos_unittest("app_fwk_update_clent_test") { 31 module_out_path = module_output_path 32 sources = [ "app_fwk_update_client_test.cpp" ] 33 sources += [ 34 "${target_gen_dir}/../../../sa/app_fwk_update_service_proxy.cpp", 35 "${target_gen_dir}/../../../sa/app_fwk_update_service_stub.cpp", 36 "${webview_path}/sa/src/app_fwk_update_client.cpp", 37 "${webview_path}/sa/src/app_fwk_update_load_callback.cpp", 38 "${webview_path}/sa/src/app_fwk_update_service.cpp", 39 ] 40 configs = [ ":module_private_config" ] 41 42 deps = [ 43 "${webview_path}/sa:app_fwk_update_service", 44 "${webview_path}/sa:app_fwk_update_service_interface", 45 ] 46 47 external_deps = [ 48 "ability_base:want", 49 "ability_base:zuri", 50 "ability_runtime:ability_manager", 51 "ability_runtime:napi_common", 52 "appspawn:appspawn_client", 53 "bundle_framework:appexecfwk_base", 54 "bundle_framework:appexecfwk_core", 55 "c_utils:utils", 56 "common_event_service:cesfwk_core", 57 "common_event_service:cesfwk_innerkits", 58 "eventhandler:libeventhandler", 59 "googletest:gmock_main", 60 "googletest:gtest_main", 61 "hilog:libhilog", 62 "hitrace:hitrace_meter", 63 "init:libbeget_proxy", 64 "init:libbegetutil", 65 "ipc:ipc_core", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 ] 69} 70 71group("unittest") { 72 testonly = true 73 deps = [ ":app_fwk_update_clent_test" ] 74} 75