• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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
16module_output_path = "ai_intelligent_voice_framework/intell_voice"
17
18ohos_unittest("client_unit_test") {
19  testonly = true
20  module_out_path = module_output_path
21  sources = [
22    "src/client_unit_test.cpp",
23    "src/engine_event_callback.cpp",
24    "src/wait_for_result.cpp",
25  ]
26
27  include_dirs = [
28    "include",
29    "../../../services/intell_voice_engine",
30    "../../../services/intell_voice_engine/server/base",
31    "../../../services/intell_voice_engine/proxy",
32    "../../../interfaces/inner_api/native",
33    "../../../utils",
34  ]
35
36  cflags_cc = [
37    "-Wno-error=unused-parameter",
38    "-DHILOG_ENABLE",
39    "-DENABLE_DEBUG",
40  ]
41
42  deps = [
43    "../../../frameworks/native:intellvoice_native",
44    "../../../services:intell_voice_proxy",
45  ]
46
47  external_deps = [
48    "c_utils:utils",
49    "drivers_interface_intelligent_voice:intell_voice_engine_idl_headers",
50    "hilog:libhilog",
51    "ipc:ipc_core",
52    "safwk:system_ability_fwk",
53    "samgr:samgr_proxy",
54  ]
55
56  resource_config_file = "resource/ohos_test.xml"
57}
58
59ohos_unittest("trigger_unit_test") {
60  testonly = true
61  module_out_path = module_output_path
62  sources = [ "src/trigger_unit_test.cpp" ]
63
64  include_dirs = [
65    "../../../services/intell_voice_trigger/server",
66    "../../../services/intell_voice_trigger/server/connector_mgr",
67    "../../../utils",
68  ]
69
70  cflags_cc = [
71    "-Wno-error=unused-parameter",
72    "-DHILOG_ENABLE",
73    "-DENABLE_DEBUG",
74  ]
75
76  deps = [ "../../../services:intell_voice_server" ]
77
78  external_deps = [
79    "audio_framework:audio_client",
80    "c_utils:utils",
81    "call_manager:tel_call_manager_api",
82    "core_service:tel_core_service_api",
83    "drivers_interface_intelligent_voice:intell_voice_trigger_idl_headers",
84    "hilog:libhilog",
85    "power_manager:powermgr_client",
86    "relational_store:native_rdb",
87    "state_registry:tel_state_registry_api",
88  ]
89}
90
91ohos_unittest("trigger_manager_test") {
92  testonly = true
93  module_out_path = module_output_path
94  sources = [ "src/trigger_manager_test.cpp" ]
95
96  include_dirs = [
97    "../../../services/intell_voice_trigger/server",
98    "../../../services/intell_voice_trigger/server/connector_mgr",
99    "../../../utils",
100  ]
101
102  cflags_cc = [
103    "-Wno-error=unused-parameter",
104    "-DHILOG_ENABLE",
105    "-DENABLE_DEBUG",
106  ]
107
108  deps = [ "../../../services:intell_voice_server" ]
109
110  external_deps = [
111    "audio_framework:audio_client",
112    "c_utils:utils",
113    "call_manager:tel_call_manager_api",
114    "core_service:tel_core_service_api",
115    "drivers_interface_intelligent_voice:intell_voice_trigger_idl_headers",
116    "hilog:libhilog",
117    "relational_store:native_rdb",
118    "safwk:system_ability_fwk",
119    "samgr:samgr_proxy",
120    "state_registry:tel_state_registry_api",
121  ]
122}
123