• 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
16SUBSYSTEM_DIR = "//foundation/multimodalinput/input"
17module_output_path = "multimodalinput_base/event"
18
19ohos_unittest("KeyEventTest") {
20  module_out_path = module_output_path
21  sources = [ "unittest/key_event_test.cpp" ]
22
23  include_dirs = [
24    "../include",
25    "$SUBSYSTEM_DIR",
26    "//utils/native/base/include",
27  ]
28
29  deps = [
30    "$SUBSYSTEM_DIR/interfaces/native/innerkits/event:mmi_event",
31    "//third_party/googletest:gtest_main",
32    "//utils/native/base:utils",
33  ]
34  external_deps = [
35    "hiviewdfx_hilog_native:libhilog",
36  ]
37}
38
39ohos_unittest("KeyBoardEventTest") {
40  module_out_path = module_output_path
41  sources = [ "unittest/keyboard_event_test.cpp" ]
42
43  include_dirs = [
44    "../include",
45    "$SUBSYSTEM_DIR",
46    "//utils/native/base/include",
47  ]
48
49  deps = [
50    "$SUBSYSTEM_DIR/interfaces/native/innerkits/event:mmi_event",
51    "//third_party/googletest:gtest_main",
52    "//utils/native/base:utils",
53  ]
54  external_deps = [
55    "hiviewdfx_hilog_native:libhilog",
56  ]
57}
58
59ohos_unittest("ManipulationEventTest") {
60  module_out_path = module_output_path
61  sources = [ "unittest/manipulation_event_test.cpp" ]
62
63  include_dirs = [
64    "../include",
65    "$SUBSYSTEM_DIR",
66    "//utils/native/base/include",
67  ]
68
69  deps = [
70    "$SUBSYSTEM_DIR/interfaces/native/innerkits/event:mmi_event",
71    "//third_party/googletest:gtest_main",
72    "//utils/native/base:utils",
73  ]
74  external_deps = [
75    "hiviewdfx_hilog_native:libhilog",
76  ]
77}
78
79group("unittest") {
80  testonly = true
81  deps = [
82    ":KeyEventTest",
83    ":KeyBoardEventTest",
84    ":ManipulationEventTest",
85  ]
86}
87