1# Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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/ohos.gni") 15import("//build/test.gni") 16import("//foundation/CastEngine/castengine_wifi_display/config.gni") 17 18module_out_path = "sharing/impl" 19 20ohos_unittest("wfd_screen_capture_test") { 21 module_out_path = module_out_path 22 sanitize = { 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 } 27 28 include_dirs = [ 29 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl", 30 "$SHARING_ROOT_DIR/services", 31 "$SHARING_ROOT_DIR/services/codec/include", 32 "$SHARING_ROOT_DIR/services/extend/magic_enum", 33 "$SHARING_ROOT_DIR/services/mediachannel", 34 "$SHARING_ROOT_DIR/services/mediaplayer/include", 35 "$SHARING_ROOT_DIR/services/impl/screen_capture", 36 "$SHARING_ROOT_DIR/services/impl/screen_capture/mediasource", 37 "$SHARING_ROOT_DIR/services/protocol/frame", 38 "./mock", 39 ] 40 41 sources = [ 42 "$SHARING_ROOT_DIR/services/protocol/frame/frame.cpp", 43 "wfd_screen_capture_test.cpp", 44 ] 45 46 deps = [ 47 "$SHARING_ROOT_DIR/services:sharing_service", 48 "$SHARING_ROOT_DIR/services/common:sharing_common", 49 "$SHARING_ROOT_DIR/services/mediachannel:sharing_media_channel_srcs", 50 "//third_party/googletest:gmock", 51 "//third_party/googletest:gtest_main", 52 ] 53 54 external_deps = [ 55 "audio_framework:audio_client", 56 "audio_framework:audio_renderer", 57 "av_codec:av_codec_client", 58 "c_utils:utils", 59 "c_utils:utilsbase", 60 "graphic_surface:surface", 61 "graphic_surface:sync_fence", 62 "hilog:libhilog", 63 "window_manager:libdm", 64 ] 65} 66