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/print/print_fwk/print.gni") 15import("//build/test.gni") 16 17module_output_path = "print_fwk/fwk_inner_napi_test" 18 19ohos_unittest("print_fwk_inner_napi_test") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "mock", 23 "../service_test/mock", 24 "${print_path}/frameworks/innerkitsimpl/print_impl/include", 25 "${print_path}/frameworks/models/print_models/include", 26 "${print_path}/services/print_service/include", 27 "${print_utils_path}/include", 28 "//third_party/node/src", 29 ] 30 31 sources = [ 32 "print_attributes_test.cpp", 33 "print_callback_stub_test.cpp", 34 "print_extension_callback_stub_test.cpp", 35 "print_extension_info_test.cpp", 36 "print_job_test.cpp", 37 "print_manager_client_test.cpp", 38 "print_margin_test.cpp", 39 "print_page_size_test.cpp", 40 "print_preview_attribute_test.cpp", 41 "print_range_test.cpp", 42 "print_resolution_test.cpp", 43 "print_sa_death_recipient_test.cpp", 44 "print_service_proxy_test.cpp", 45 "print_sync_load_callback_test.cpp", 46 "print_utils_test.cpp", 47 "printer_capability_test.cpp", 48 "printer_info_test.cpp", 49 ] 50 51 deps = [ 52 "${print_path}/etc/init:printservice.rc", 53 "${print_path}/frameworks/helper/print_helper:print_helper", 54 "${print_path}/frameworks/innerkitsimpl/print_impl:print_client", 55 "${print_path}/frameworks/kits/extension:print_extension_framework", 56 "${print_path}/frameworks/kits/extension:print_extension_module", 57 "${print_path}/frameworks/models/print_models:print_models", 58 "${print_path}/interfaces/kits/jsnapi/print_extension:printextensionability_napi", 59 "${print_path}/interfaces/kits/jsnapi/print_extensionctx:printextensioncontext_napi", 60 "${print_path}/interfaces/kits/napi/print_napi:print_napi", 61 "${print_path}/profile:print_sa_profiles", 62 "${print_path}/services/print_service:print_service", 63 "//third_party/googletest:gmock_main", 64 "//third_party/zlib:libz", 65 ] 66 67 external_deps = [ 68 "ability_base:want", 69 "ability_base:zuri", 70 "ability_runtime:ability_manager", 71 "ability_runtime:abilitykit_native", 72 "ability_runtime:data_ability_helper", 73 "ability_runtime:napi_base_context", 74 "c_utils:utils", 75 "common_event_service:cesfwk_innerkits", 76 "eventhandler:libeventhandler", 77 "hilog:libhilog", 78 "i18n:intl_util", 79 "ipc:ipc_core", 80 "napi:ace_napi", 81 "preferences:native_preferences", 82 "relational_store:native_appdatafwk", 83 "relational_store:native_dataability", 84 "relational_store:native_rdb", 85 "resource_management:global_resmgr", 86 "samgr:samgr_proxy", 87 ] 88} 89 90group("unittest") { 91 testonly = true 92 93 deps = [] 94 95 deps += [ ":print_fwk_inner_napi_test" ] 96} 97