• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//foundation/systemabilitymgr/safwk/services/safwk/include",
27    "${services_path}/include",
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_common_path}:libevent_common",
39    "${ces_core_path}:cesfwk_core",
40    "${ces_native_path}:cesfwk_innerkits",
41    "${services_path}:cesfwk_services",
42    "//third_party/benchmark:benchmark",
43  ]
44
45  external_deps = [
46    "ability_base:want",
47    "access_token:libaccesstoken_sdk",
48    "bundle_framework:appexecfwk_base",
49    "bundle_framework:appexecfwk_core",
50    "c_utils:utils",
51    "eventhandler:libeventhandler",
52    "ipc:ipc_core",
53    "ipc:libdbinder",
54  ]
55  subsystem_name = "notification"
56  part_name = "common_event_service"
57}
58
59group("benchmarktest") {
60  testonly = true
61  deps = []
62
63  deps += [
64    # deps file
65    #":Common_Event_Manager_Service_Test",
66  ]
67}
68