zhouyongfei 3e8b13bd33 add inputmethod
Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
2021-09-14 20:33:47 +08:00

99 lines
3.4 KiB
Plaintext

# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/test.gni")
config("module_private_config") {
visibility = [ ":*" ]
include_dirs = [
"include",
]
}
module_output_path = "inputmethod_native/inputmethod_service"
ohos_unittest("InputMethodControllerTest") {
module_out_path = module_output_path
sources = [
"src/test_imc.cpp"]
configs = [
":module_private_config",
]
deps = [
"//base/miscservices/inputmethod/frameworks/inputmethod_controller:inputmethod_client",
"//base/miscservices/inputmethod/frameworks/inputmethod_ability:inputmethod_ability",
"//base/miscservices/inputmethod/services:inputmethod_service",
"//utils/native/base:utils",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single",
"//third_party/googletest:gtest_main",
"//utils/native/base:utils",
"//foundation/aafwk/standard/services/abilitymgr:abilityms",
"//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
"//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
"//foundation/aafwk/standard/interfaces/innerkits/want:want",
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
"//foundation/ace/napi/:ace_napi",
]
external_deps = [
"hiviewdfx_hilog_native:libhilog",
]
}
ohos_unittest("InputMethodAbilityTest") {
module_out_path = module_output_path
sources = [
"src/test_ima.cpp"]
configs = [
":module_private_config",
]
deps = [
"//base/miscservices/inputmethod/frameworks/inputmethod_controller:inputmethod_client",
"//base/miscservices/inputmethod/frameworks/inputmethod_ability:inputmethod_ability",
"//base/miscservices/inputmethod/services:inputmethod_service",
"//utils/native/base:utils",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single",
"//third_party/googletest:gtest_main",
"//utils/native/base:utils",
"//foundation/aafwk/standard/services/abilitymgr:abilityms",
"//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
"//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
"//foundation/aafwk/standard/interfaces/innerkits/want:want",
"//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
"//foundation/ace/napi/:ace_napi",
]
external_deps = [
"hiviewdfx_hilog_native:libhilog",
]
}
group("unittest") {
testonly = true
deps = []
deps += [ ":InputMethodControllerTest", ":InputMethodAbilityTest" ]
}