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("//build/ohos.gni") 16import("//build/ohos_var.gni") 17import("//foundation/distributedhardware/distributedscreen/distributedscreen.gni") 18 19module_out_path = "distributed_screen/sink_processor_test" 20 21config("module_private_config") { 22 visibility = [ ":*" ] 23 include_dirs = [ 24 "//third_party/json/include", 25 "//foundation/graphic/standard/interfaces/innerkits/surface", 26 "${fwk_common_path}/utils/include", 27 ] 28 29 include_dirs += [ 30 "./include", 31 "${services_path}/screentransport/test/unittest/screentranstestutils/include", 32 "${common_path}/include", 33 "${services_path}/common/databuffer/include", 34 "${services_path}/common/screen_channel/include", 35 "${services_path}/common/utils/include", 36 "${services_path}/screentransport/screendatachannel/include", 37 "${services_path}/screentransport/screensourcetrans/include", 38 "${services_path}/screentransport/screensinkprocessor/include", 39 "${services_path}/screentransport/screensinktrans/include", 40 "${services_path}/screentransport/screensinkprocessor/include", 41 "${services_path}/screentransport/screensinkprocessor/decoder/include", 42 "${services_path}/softbusadapter/include", 43 ] 44} 45 46## UnitTest screen_sink_processor_test 47ohos_unittest("SinkProcessorTest") { 48 module_out_path = module_out_path 49 50 sources = [ 51 "${services_path}/screentransport/test/unittest/screensinkprocessor/src/image_sink_decoder_test.cpp", 52 "${services_path}/screentransport/test/unittest/screensinkprocessor/src/image_sink_processor_test.cpp" 53 ] 54 55 configs = [ ":module_private_config" ] 56 57 deps = [ 58 "//third_party/googletest:gmock", 59 "//third_party/googletest:gtest_main", 60 "${services_path}/screentransport/screensinktrans:distributed_screen_sinktrans", 61 "${fwk_utils_path}:distributedhardwareutils", 62 "//foundation/graphic/standard/frameworks/surface:surface", 63 "//utils/native/base:utils", 64 ] 65 66 external_deps = [ 67 "dsoftbus_standard:softbus_client", 68 "hiviewdfx_hilog_native:libhilog", 69 "multimedia_media_standard:media_client", 70 ] 71 72 defines = [ 73 "HI_LOG_ENABLE", 74 "DH_LOG_TAG=\"sinkprocessorest\"", 75 "LOG_DOMAIN=0xD004100", 76 ] 77 78 remove_configs = [ "//build/config/compiler:no_rtti" ] 79 cflags = [ "-frtti" ] 80 cflags_cc = cflags 81} 82 83group("sink_processor_test") { 84 testonly = true 85 deps = [ ":SinkProcessorTest" ] 86}