1# Copyright (c) 2022-2023 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/ohos.gni") 15import("//build/test.gni") 16import("../../../ressched.gni") 17 18module_output_path = "resource_schedule_service/ressched" 19 20ohos_unittest("event_controller_test") { 21 module_out_path = module_output_path 22 23 include_dirs = [ 24 "${ressched_common}/include", 25 "${ressched_interfaces}/innerkits/ressched_client/include", 26 ] 27 28 sources = [ "event_controller_test.cpp" ] 29 30 deps = [ 31 "${ressched_services}:resschedsvc_static", 32 "//third_party/googletest:gtest_main", 33 ] 34 35 external_deps = [ 36 "ability_base:want", 37 "ability_runtime:abilitykit_native", 38 "ability_runtime:app_manager", 39 "ability_runtime:wantagent_innerkits", 40 "bundle_framework:appexecfwk_base", 41 "common_event_service:cesfwk_innerkits", 42 "hilog:libhilog", 43 "ipc:ipc_single", 44 "samgr:samgr_proxy", 45 ] 46 47 defines = [] 48 49 if (ressched_with_communication_netmanager_base_enable) { 50 defines += [ "RESSCHED_COMMUNICATION_NETMANAGER_BASE_ENABLE" ] 51 external_deps += [ "netmanager_base:net_conn_manager_if" ] 52 } 53 54 subsystem_name = "resourceschedule" 55 part_name = "resource_schedule_service" 56} 57 58group("unittest") { 59 testonly = true 60 deps = [] 61 deps += [ ":event_controller_test" ] 62} 63