• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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")
15
16native_hiappevent_path = "//base/hiviewdfx/hiappevent/frameworks/native"
17native_module_output_path = "hiappevent/native"
18
19config("hiappevent_config_test") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    ".",
24    "//base/hiviewdfx/hiappevent/interfaces/native/kits/include",
25    "$native_hiappevent_path/libhiappevent/include",
26  ]
27}
28
29ohos_unittest("HiAppEventNativeTest") {
30  module_out_path = native_module_output_path
31
32  configs = [ ":hiappevent_config_test" ]
33
34  sources = [ "unittest/common/native/hiappevent_native_test.cpp" ]
35
36  deps = [
37    "$native_hiappevent_path/libhiappevent:libhiappevent_base",
38    "$native_hiappevent_path/ndk:hiappevent_ndk",
39    "//third_party/googletest:gtest_main",
40  ]
41}
42
43group("unittest") {
44  testonly = true
45  deps = [
46    ":HiAppEventNativeTest",
47    "unittest/common/napi:unittest",
48  ]
49}
50