• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = unit_test_output_path
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  ]
29
30  sanitize = {
31    cfi = true
32    cfi_cross_dso = true
33    debug = false
34    blocklist = "${print_path}/cfi_blocklist.txt"
35  }
36
37  sources = [
38    "print_attributes_test.cpp",
39    "print_callback_stub_test.cpp",
40    "print_extension_callback_stub_test.cpp",
41    "print_extension_info_test.cpp",
42    "print_job_test.cpp",
43    "print_manager_client_test.cpp",
44    "print_margin_test.cpp",
45    "print_page_size_test.cpp",
46    "print_preview_attribute_test.cpp",
47    "print_range_test.cpp",
48    "print_resolution_test.cpp",
49    "print_sa_death_recipient_test.cpp",
50    "print_service_proxy_test.cpp",
51    "print_sync_load_callback_test.cpp",
52    "print_utils_test.cpp",
53    "printer_capability_test.cpp",
54    "printer_info_test.cpp",
55    "printer_preferences_test.cpp",
56  ]
57
58  deps = [
59    "${print_path}/etc/init:printservice.rc",
60    "${print_path}/frameworks/helper/print_helper:print_helper",
61    "${print_path}/frameworks/innerkitsimpl/print_impl:print_client",
62    "${print_path}/frameworks/kits/extension:print_extension_framework",
63    "${print_path}/frameworks/kits/extension:print_extension_module",
64    "${print_path}/frameworks/models/print_models:print_models",
65    "${print_path}/interfaces/kits/jsnapi/print_extension:printextensionability_napi",
66    "${print_path}/interfaces/kits/jsnapi/print_extensionctx:printextensioncontext_napi",
67    "${print_path}/interfaces/kits/napi/print_napi:print_napi",
68    "${print_path}/profile:print_sa_profiles",
69    "${print_path}/services/print_service:print_service_test",
70  ]
71
72  external_deps = [
73    "ability_base:want",
74    "ability_base:zuri",
75    "ability_runtime:ability_manager",
76    "ability_runtime:abilitykit_native",
77    "ability_runtime:data_ability_helper",
78    "ability_runtime:napi_base_context",
79    "c_utils:utils",
80    "common_event_service:cesfwk_innerkits",
81    "eventhandler:libeventhandler",
82    "googletest:gmock_main",
83    "hilog:libhilog",
84    "ipc:ipc_core",
85    "jsoncpp:jsoncpp",
86    "napi:ace_napi",
87    "relational_store:native_appdatafwk",
88    "relational_store:native_dataability",
89    "relational_store:native_rdb",
90    "resource_management:global_resmgr",
91    "samgr:samgr_proxy",
92  ]
93}
94
95group("unittest") {
96  testonly = true
97
98  deps = []
99
100  deps += [ ":print_fwk_inner_napi_test" ]
101}
102