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("//base/miscservices/pasteboard/pasteboard.gni") 15import("//build/test.gni") 16 17config("module_private_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "${pasteboard_innerkits_path}/include", 22 "include", 23 "unittest/include", 24 ] 25} 26 27module_output_path = "pasteboard_native/pasteboard_service" 28 29ohos_unittest("PasteboardServiceTest") { 30 module_out_path = module_output_path 31 32 sources = [ "unittest/src/paste_service_test.cpp" ] 33 configs = [ 34 "//utils/native/base:utils_config", 35 ":module_private_config", 36 ] 37 external_deps = [ 38 "ability_base:zuri", 39 "hiviewdfx_hilog_native:libhilog", 40 "ipc:ipc_core", 41 ] 42 43 deps = [ 44 "${pasteboard_innerkits_path}:pasteboard_client", 45 "//foundation/aafwk/standard/interfaces/innerkits/base:base", 46 "//foundation/aafwk/standard/interfaces/innerkits/intent:intent", 47 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 48 "//third_party/googletest:gtest_main", 49 "//utils/native/base:utils", 50 ] 51} 52 53group("unittest") { 54 testonly = true 55 56 deps = [] 57 58 deps += [ ":PasteboardServiceTest" ] 59} 60