1# Copyright (c) 2024 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("../../../ressched/ressched.gni") 16import("../../ressched_executor.gni") 17 18group("unittest") { 19 testonly = true 20 deps = [ ":resschedexefwk_test" ] 21} 22 23module_output_path = "resource_schedule_service/ressched_executor" 24 25ohos_unittest("resschedexefwk_test") { 26 module_out_path = module_output_path 27 28 include_dirs = [ 29 "${ressched_common}/include", 30 "${resschedexe_common}/include", 31 "${resschedexe_interfaces}/innerkits/ressched_executor_client/include", 32 ] 33 34 sources = [ 35 "res_sched_exe_client_test.cpp", 36 "res_sched_exe_mgr_test.cpp", 37 "res_sched_exe_service_test.cpp", 38 ] 39 40 deps = [ 41 "${resschedexe_services}:resschedexesvc_static", 42 "//third_party/googletest:gtest_main", 43 ] 44 45 external_deps = [ 46 "access_token:libaccesstoken_sdk", 47 "access_token:libnativetoken", 48 "access_token:libtoken_setproc", 49 "c_utils:utils", 50 "ffrt:libffrt", 51 "hilog:libhilog", 52 "ipc:ipc_single", 53 ] 54 55 public_external_deps = [ "json:nlohmann_json_static" ] 56 57 cflags = [ 58 "-Dprivate=public", 59 "-Dprotected=public", 60 ] 61 62 sanitize = { 63 cfi = true 64 cfi_cross_dso = true 65 debug = false 66 } 67 68 branch_protector_ret = "pac_ret" 69} 70