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("//base/notification/common_event_service/event.gni") 15import("//build/test.gni") 16 17module_output_path = "common_event_service/benchmarktest" 18 19ohos_benchmarktest("Common_Event_Manager_Service_Test") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "include", 23 "${common_event_service_path}/test/mock/include", 24 "${ces_core_path}/include", 25 "${ces_innerkits_path}", 26 "${services_path}/include", 27 "${ffrt_path}/interfaces/kits", 28 ] 29 30 sources = [ 31 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp", 32 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp", 33 "${common_event_service_path}/test/mock/mock_ipc.cpp", 34 "common_event_manager_service_test.cpp", 35 ] 36 37 deps = [ 38 "${ces_core_path}:cesfwk_core", 39 "${ces_native_path}:cesfwk_innerkits", 40 "${services_path}:cesfwk_services_static", 41 "//third_party/benchmark:benchmark", 42 ] 43 44 external_deps = [ 45 "ability_base:want", 46 "access_token:libaccesstoken_sdk", 47 "access_token:libtokenid_sdk", 48 "bundle_framework:appexecfwk_base", 49 "bundle_framework:appexecfwk_core", 50 "c_utils:utils", 51 "eventhandler:libeventhandler", 52 "ffrt:libffrt", 53 "ipc:ipc_core", 54 "ipc:libdbinder", 55 ] 56 subsystem_name = "notification" 57 part_name = "common_event_service" 58} 59 60group("benchmarktest") { 61 testonly = true 62 deps = [] 63 64 deps += [ 65 # deps file 66 #":Common_Event_Manager_Service_Test", 67 ] 68} 69