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("//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 "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 23 "//foundation/distributeddatamgr/pasteboard/framework/tlv", 24 ] 25} 26 27module_output_path = "pasteboard/pasteboard_service" 28 29ohos_unittest("PasteboardFrameworkTest") { 30 resource_config_file = "//foundation/distributeddatamgr/pasteboard/framework/test/resource/ohos_test.xml" 31 module_out_path = module_output_path 32 33 sources = [ 34 "paste_data_test.cpp", 35 "tlv_object_test.cpp", 36 ] 37 configs = [ 38 "//commonlibrary/c_utils/base:utils_config", 39 ":module_private_config", 40 ] 41 external_deps = [ 42 "ability_base:want", 43 "ability_base:zuri", 44 "c_utils:utils", 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 "multimedia_image_framework:image_native", 48 ] 49 50 deps = [ 51 "${pasteboard_innerkits_path}:pasteboard_client", 52 "//foundation/distributeddatamgr/pasteboard/framework/uri:pasteboard_uri", 53 "//third_party/googletest:gmock", 54 "//third_party/googletest:gtest_main", 55 ] 56} 57