1# Copyright (c) 2022-2023 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 "${pasteboard_root_path}/framework/framework/include/serializable", 25 "${pasteboard_service_path}/load/include", 26 "include", 27 "test/include", 28 ] 29} 30 31module_output_path = "pasteboard/pasteboard_service" 32 33ohos_unittest("PasteboardFrameworkTest") { 34 resource_config_file = "//foundation/distributeddatamgr/pasteboard/framework/test/resource/ohos_test.xml" 35 module_out_path = module_output_path 36 37 sources = [ 38 "${pasteboard_root_path}/framework/framework/serializable/serializable.cpp", 39 "${pasteboard_service_path}/load/src/config.cpp", 40 "src/clip_para_test.cpp", 41 "src/dm_adapter_test.cpp", 42 "src/paste_data_test.cpp", 43 "src/serializable_test.cpp", 44 "src/tlv_object_test.cpp", 45 "src/web_controller_test.cpp", 46 ] 47 configs = [ 48 "//commonlibrary/c_utils/base:utils_config", 49 ":module_private_config", 50 ] 51 external_deps = [ 52 "ability_base:base", 53 "ability_base:want", 54 "ability_base:zuri", 55 "app_file_service:remote_file_share_native", 56 "c_utils:utils", 57 "device_info_manager:distributed_device_profile_client", 58 "device_manager:devicemanagersdk", 59 "hilog:libhilog", 60 "image_framework:image_native", 61 "init:libbeget_proxy", 62 "init:libbegetutil", 63 "ipc:ipc_core", 64 ] 65 66 deps = [ 67 "${pasteboard_framework_path}:pasteboard_framework", 68 "${pasteboard_innerkits_path}:pasteboard_client", 69 "//foundation/distributeddatamgr/pasteboard/framework/uri:pasteboard_uri", 70 "//third_party/googletest:gmock", 71 "//third_party/googletest:gtest_main", 72 ] 73} 74