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( 16 "//foundation/distributedhardware/distributed_screen/distributedscreen.gni") 17 18module_out_path = "distributed_screen/dscreen_sink_service_test" 19 20config("module_private_config") { 21 visibility = [ ":*" ] 22 include_dirs = [ 23 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 24 "//third_party/json/include", 25 "//commonlibrary/c_utils/base/include", 26 "//utils/system/safwk/native/include", 27 "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", 28 "//foundation/graphic/graphic_2d/interfaces/inner_api/common", 29 "//foundation/graphic/graphic_2d/utils/buffer_handle/export", 30 "${windowmanager_path}/interfaces/innerkits/dm", 31 "${fwk_common_path}/utils/include", 32 "${distributedhardwarefwk_path}/interfaces/inner_kits/include", 33 ] 34 35 include_dirs += [ 36 "./include", 37 "${interfaces_path}/innerkits/native_cpp/screen_sink/include", 38 "${interfaces_path}/innerkits/native_cpp/screen_sink/include/callback", 39 "${interfaces_path}/innerkits/native_cpp/screen_source/include", 40 "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", 41 "${common_path}/include", 42 "${services_path}/common/utils/include", 43 "${services_path}/common/databuffer/include", 44 "${services_path}/common/screen_channel/include", 45 "${services_path}/screentransport/screensinktrans/include", 46 "${services_path}/screentransport/screensinkprocessor/include", 47 "${services_path}/screentransport/screensinkprocessor/decoder/include", 48 "${services_path}/screenclient/include/", 49 "${services_path}/screenservice/sinkservice/screenregionmgr/include", 50 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 51 "//drivers/peripheral/display/interfaces/include", 52 "//drivers/peripheral/base", 53 ] 54} 55 56## UnitTest DscreenRegionMgrTest 57ohos_unittest("DscreenRegionMgrTest") { 58 module_out_path = module_out_path 59 60 sources = [ 61 "${services_path}/screenservice/test/unittest/sinkservice/screenregionmgr/src/screenregion_test.cpp", 62 "${services_path}/screenservice/test/unittest/sinkservice/screenregionmgr/src/screenregionmgr_test.cpp", 63 ] 64 65 configs = [ ":module_private_config" ] 66 67 deps = [ 68 "${services_path}/screenservice/sinkservice:distributed_screen_sink", 69 "${services_path}/screentransport/screensinktrans:distributed_screen_sinktrans", 70 "//third_party/googletest:gmock", 71 "//third_party/googletest:gtest_main", 72 ] 73 74 external_deps = [ "c_utils:utils" ] 75} 76