• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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("//build/test.gni")
15import("//foundation/distributeddatamgr/pasteboard/pasteboard.gni")
16
17config("module_private_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "${pasteboard_innerkits_path}/include",
22    "include",
23    "unittest/include",
24    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
25    "//foundation/distributeddatamgr/pasteboard/framework/tlv",
26    "//foundation/distributeddatamgr/pasteboard/framework/uri",
27  ]
28}
29
30module_output_path = "pasteboard/pasteboard_service"
31
32ohos_unittest("PasteboardServiceTest") {
33  module_out_path = module_output_path
34
35  sources = [ "unittest/src/paste_service_test.cpp" ]
36  configs = [
37    "//commonlibrary/c_utils/base:utils_config",
38    ":module_private_config",
39  ]
40  external_deps = [
41    "ability_base:want",
42    "ability_base:zuri",
43    "access_token:libaccesstoken_sdk",
44    "c_utils:utils",
45    "hiviewdfx_hilog_native:libhilog",
46    "ipc:ipc_core",
47    "multimedia_image_framework:image_native",
48    "os_account:os_account_innerkits",
49  ]
50
51  deps = [
52    "${pasteboard_innerkits_path}:pasteboard_client",
53    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
54    "//third_party/googletest:gtest_main",
55  ]
56}
57
58group("unittest") {
59  testonly = true
60
61  deps = []
62
63  deps += [ ":PasteboardServiceTest" ]
64}
65