• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/startup/appspawn/appspawn.gni")
15import("//build/test.gni")
16
17ohos_unittest("AppSpawn_HisysEvent_ut") {
18  module_out_path = "appspawn/appspawn"
19  deps = []
20  if (appspawn_unittest_coverage) {
21    cflags = [ "--coverage" ]
22    ldflags = [ "--coverage" ]
23    cflags_cc = [ "--coverage" ]
24  }
25  defines = [
26    "APPSPAWN_TEST",
27  ]
28
29  include_dirs = [
30    "${appspawn_path}/modules/sysevent",
31    "${appspawn_path}/util/include",
32    "${appspawn_path}/test/unittest/app_spawn_hisysevent_test",
33  ]
34
35  sources = [
36    "${appspawn_path}/modules/sysevent/hisysevent_adapter.cpp",
37    "${appspawn_path}/test/unittest/app_spawn_hisysevent_test/app_spawn_hisysevent_test.cpp",
38    "${appspawn_path}/test/unittest/app_spawn_hisysevent_test/app_spawn_hisysevent_stub.c",
39  ]
40
41  external_deps = [
42    "hisysevent:libhisysevent",
43    "hilog:libhilog",
44    "init:libbegetutil",
45    "c_utils:utils",
46    ]
47}