1# Copyright (c) 2022 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("$webview_path/config.gni") 17 18module_output_path = "web/webview" 19 20config("module_private_config") { 21 visibility = [ ":*" ] 22 23 include_dirs = [ "../common" ] 24 25 if (webview_print_enable) { 26 defines = [ "NWEB_PRINT_ENABLE" ] 27 } 28} 29 30ohos_unittest("ohos_adapter_helper_test") { 31 module_out_path = module_output_path 32 33 sources = [ 34 "../common/nweb_create_window.cpp", 35 "ohos_adapter_helper_test.cpp", 36 ] 37 38 configs = [ ":module_private_config" ] 39 40 deps = [ 41 "../../../ohos_adapter:nweb_ohos_adapter", 42 "//third_party/googletest:gtest_main", 43 ] 44 45 external_deps = [ 46 "ability_base:base", 47 "ability_base:want", 48 "ability_runtime:ability_context_native", 49 "ability_runtime:ability_manager", 50 "bundle_framework:appexecfwk_base", 51 "bundle_framework:appexecfwk_core", 52 "c_utils:utils", 53 "graphic_2d:librender_service_client", 54 "graphic_2d:window_animation", 55 "graphic_surface:surface", 56 "hilog:libhilog", 57 "hisysevent:libhisysevent", 58 "image_framework:image", 59 "image_framework:image_native", 60 "imf:inputmethod_client", 61 "input:libmmi-client", 62 "ipc:ipc_core", 63 "napi:ace_napi", 64 "resource_management:global_resmgr", 65 "safwk:system_ability_fwk", 66 "samgr:samgr_proxy", 67 "webview:libnweb", 68 "window_manager:libwm", 69 ] 70} 71group("unittest") { 72 testonly = true 73 deps = [ ":ohos_adapter_helper_test" ] 74} 75