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("//foundation/communication/netmanager_base/netmanager_base_config.gni") 16 17ohos_unittest("bandwidth_manager_test") { 18 module_out_path = "netmanager_base/netsys_native_manager_test" 19 sources = [ "bandwidth_manager_test.cpp" ] 20 21 include_dirs = [ 22 "$INNERKITS_ROOT/dnsresolverclient/include", 23 "$INNERKITS_ROOT/dnsresolverclient/include/proxy", 24 "$INNERKITS_ROOT/netmanagernative/include", 25 "$NETSYSNATIVE_INNERKITS_SOURCE_DIR", 26 "$NETSYSNATIVE_SOURCE_DIR/include", 27 "$NETSYSNATIVE_SOURCE_DIR/include/netsys", 28 "$NETSYSNATIVE_SOURCE_DIR/include/manager", 29 "$NETSYSNATIVE_SOURCE_DIR/test", 30 "$NETSYSCONTROLLER_ROOT_DIR/include", 31 ] 32 33 deps = [ 34 "$NETMANAGER_BASE_ROOT/services/netmanagernative:netsys_native_manager", 35 "$NETSYSCONTROLLER_ROOT_DIR:netsys_controller", 36 ] 37 38 external_deps = [ 39 "ability_base:want", 40 "bundle_framework:appexecfwk_base", 41 "bundle_framework:appexecfwk_core", 42 "c_utils:utils", 43 "ipc:ipc_core", 44 "safwk:system_ability_fwk", 45 "samgr:samgr_proxy", 46 ] 47 48 defines = [ 49 "NETMGRNATIVE_LOG_TAG = \"NetsysNativeService\"", 50 "LOG_DOMAIN = 0xD0015B0", 51 ] 52 53 if (enable_netmgr_debug) { 54 defines += [ "NETMGR_DEBUG" ] 55 } 56 57 if (is_standard_system) { 58 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 59 } else { 60 external_deps += [ "hilog:libhilog" ] 61 } 62 63 part_name = "netmanager_base" 64 subsystem_name = "communication" 65} 66