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/interaction" 19 20ohos_unittest("interaction_domain_unit_test") { 21 module_out_path = module_out_path 22 23 include_dirs = [ 24 "$SHARING_ROOT_DIR/services", 25 "$SHARING_ROOT_DIR/services/interaction", 26 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl", 27 "$SHARING_ROOT_DIR/services/utils/native/base/include", 28 "$SHARING_ROOT_DIR/services/interaction/ipc_codec", 29 "$SHARING_ROOT_DIR/services/interaction/device_kit", 30 "$SHARING_ROOT_DIR/services/interaction/domain", 31 "$SHARING_ROOT_DIR/services/interaction/domain/rpc", 32 "$SHARING_ROOT_DIR/services/interaction/interprocess", 33 "$SHARING_ROOT_DIR/services/interaction/scene", 34 ] 35 36 sources = [ "domain_unit_test.cpp" ] 37 38 cflags = [ 39 "-Dprivate=public", 40 "-Dprotected=public", 41 ] 42 43 deps = [ 44 "$SHARING_ROOT_DIR/services:sharing_service", 45 "//third_party/googletest:gtest_main", 46 ] 47 48 external_deps = [ 49 "ability_base:base", 50 "ability_base:want", 51 "ability_runtime:ability_manager", 52 "access_token:libaccesstoken_sdk", 53 "access_token:libnativetoken", 54 "access_token:libtoken_setproc", 55 "c_utils:utils", 56 "c_utils:utilsbase", 57 "device_manager:devicemanagersdk", 58 "graphic_surface:surface", 59 "hilog:libhilog", 60 "ipc:ipc_core", 61 "kv_store:distributeddata_inner", 62 "safwk:system_ability_fwk", 63 "samgr:samgr_proxy", 64 "wifi:wifi_sdk", 65 ] 66} 67