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("../../../../dsoftbus.gni") 16 17module_output_path = "dsoftbus/transmission" 18dsoftbus_root_path = "../../../.." 19 20## UnitTest SoftbusClientEventManagerTest {{{ 21ohos_unittest("SoftbusClientEventManagerTest") { 22 module_out_path = module_output_path 23 sources = [ "softbus_client_event_manager_test.cpp" ] 24 25 include_dirs = [ 26 "$dsoftbus_root_path/core/common/include", 27 "$dsoftbus_root_path/core/frame/common/include", 28 "$dsoftbus_root_path/core/transmission/common/include", 29 "$dsoftbus_root_path/sdk/transmission/session/include", 30 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream", 31 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/include", 32 "$dsoftbus_root_path/adapter/common/include", 33 "$dsoftbus_root_path/components/nstackx/fillp/include", 34 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/stream/include", 35 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 36 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/stream/adaptor/include", 37 "$dsoftbus_root_path/sdk/frame/common/src", 38 "$dsoftbus_root_path/sdk/frame/common/include", 39 "$dsoftbus_root_path/interfaces/kits/common", 40 "$dsoftbus_root_path/sdk/bus_center/manager/include", 41 "$dsoftbus_root_path/sdk/discovery/manager/include", 42 ] 43 44 deps = [ 45 "$dsoftbus_root_path/core/common:softbus_utils", 46 "$dsoftbus_root_path/core/frame:softbus_server", 47 "$dsoftbus_root_path/sdk:softbus_client", 48 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 49 "//third_party/bounds_checking_function:libsec_shared", 50 "//third_party/googletest:gmock", 51 "//third_party/googletest:gtest", 52 "//third_party/googletest:gtest_main", 53 ] 54 55 if (is_standard_system) { 56 external_deps = [ 57 "c_utils:utils", 58 "hilog:libhilog", 59 ] 60 } else { 61 external_deps = [ 62 "c_utils:utils", 63 "hilog:libhilog", 64 ] 65 } 66} 67 68group("unittest") { 69 testonly = true 70 deps = [] 71 deps += [ 72 # deps file 73 ":SoftbusClientEventManagerTest", 74 ] 75} 76