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