• 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/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  ]
28
29  sources = [
30    "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
31    "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
32    "${common_event_service_path}/test/mock/mock_ipc.cpp",
33    "common_event_manager_service_test.cpp",
34  ]
35
36  deps = [
37    "${ces_core_path}:cesfwk_core",
38    "${ces_native_path}:cesfwk_innerkits",
39    "${services_path}:cesfwk_services_static",
40  ]
41
42  external_deps = [
43    "ability_base:want",
44    "access_token:libaccesstoken_sdk",
45    "access_token:libtokenid_sdk",
46    "bundle_framework:appexecfwk_base",
47    "bundle_framework:appexecfwk_core",
48    "c_utils:utils",
49    "eventhandler:libeventhandler",
50    "ffrt:libffrt",
51    "hilog:libhilog",
52    "ipc:ipc_core",
53    "ipc:libdbinder",
54  ]
55
56  public_external_deps = [ "benchmark:benchmark" ]
57
58  subsystem_name = "notification"
59  part_name = "common_event_service"
60}
61
62group("benchmarktest") {
63  testonly = true
64  deps = []
65
66  deps += [
67    # deps file
68    #":Common_Event_Manager_Service_Test",
69  ]
70}
71