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_source_scene_test") { 21 module_out_path = module_out_path 22 23 include_dirs = [ 24 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl", 25 "$SHARING_ROOT_DIR/services", 26 "$SHARING_ROOT_DIR/services/common", 27 "$SHARING_ROOT_DIR/services/impl/scene/wfd", 28 "$SHARING_ROOT_DIR/services/impl/wfd", 29 "$SHARING_ROOT_DIR/services/interaction", 30 "$SHARING_ROOT_DIR/services/interaction/interprocess", 31 "$SHARING_ROOT_DIR/services/interaction/ipc_codec", 32 "./mock", 33 ] 34 35 sources = [ 36 "./mock/mock_wfd_source_scene.cpp", 37 "./mock/mock_wifi_p2p.cpp", 38 "wfd_source_scene_test.cpp", 39 ] 40 41 deps = [ 42 "$SHARING_ROOT_DIR/services:sharing_service", 43 "$SHARING_ROOT_DIR/services/common:sharing_common", 44 "//third_party/googletest:gmock", 45 "//third_party/googletest:gtest_main", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "graphic_surface:surface", 51 "hilog:libhilog", 52 "samgr:samgr_proxy", 53 "wifi:wifi_sdk", 54 ] 55} 56 57ohos_unittest("wfd_sink_scene_test") { 58 module_out_path = module_out_path 59 60 include_dirs = [ 61 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl", 62 "$SHARING_ROOT_DIR/services", 63 "$SHARING_ROOT_DIR/services/common", 64 "$SHARING_ROOT_DIR/services/impl/scene/wfd", 65 "$SHARING_ROOT_DIR/services/impl/wfd", 66 "$SHARING_ROOT_DIR/services/interaction", 67 "$SHARING_ROOT_DIR/services/interaction/interprocess", 68 "$SHARING_ROOT_DIR/services/interaction/ipc_codec", 69 "./mock", 70 ] 71 72 sources = [ 73 "./mock/mock_wfd_sink_scene.cpp", 74 "./mock/mock_wifi_p2p.cpp", 75 "wfd_sink_scene_test.cpp", 76 ] 77 78 deps = [ 79 "$SHARING_ROOT_DIR/services:sharing_service", 80 "$SHARING_ROOT_DIR/services/common:sharing_common", 81 "//third_party/googletest:gmock", 82 "//third_party/googletest:gtest_main", 83 ] 84 85 external_deps = [ 86 "c_utils:utils", 87 "graphic_surface:surface", 88 "hilog:libhilog", 89 "samgr:samgr_proxy", 90 "wifi:wifi_sdk", 91 ] 92} 93