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 "wifi:wifi_sdk", 53 ] 54} 55 56ohos_unittest("wfd_sink_scene_test") { 57 module_out_path = module_out_path 58 59 include_dirs = [ 60 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl", 61 "$SHARING_ROOT_DIR/services", 62 "$SHARING_ROOT_DIR/services/common", 63 "$SHARING_ROOT_DIR/services/impl/scene/wfd", 64 "$SHARING_ROOT_DIR/services/impl/wfd", 65 "$SHARING_ROOT_DIR/services/interaction", 66 "$SHARING_ROOT_DIR/services/interaction/interprocess", 67 "$SHARING_ROOT_DIR/services/interaction/ipc_codec", 68 "./mock", 69 ] 70 71 sources = [ 72 "./mock/mock_wfd_sink_scene.cpp", 73 "./mock/mock_wifi_p2p.cpp", 74 "wfd_sink_scene_test.cpp", 75 ] 76 77 deps = [ 78 "$SHARING_ROOT_DIR/services:sharing_service", 79 "$SHARING_ROOT_DIR/services/common:sharing_common", 80 "//third_party/googletest:gmock", 81 "//third_party/googletest:gtest_main", 82 ] 83 84 external_deps = [ 85 "c_utils:utils", 86 "graphic_surface:surface", 87 "hilog:libhilog", 88 "wifi:wifi_sdk", 89 ] 90} 91