mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-25 16:07:29 +00:00
modify code
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
d85432713d
commit
44d9fe1f4f
unitest
@ -89,18 +89,18 @@ ohos_unittest("InputMethodServiceTest") {
|
||||
configs = [ ":module_private_config" ]
|
||||
|
||||
deps = [
|
||||
"${ability_runtime_inner_api_path}/ability_manager:ability_manager",
|
||||
"${ability_runtime_services_path}/abilitymgr:abilityms",
|
||||
"//base/inputmethod/imf/frameworks/inputmethod_ability:inputmethod_ability",
|
||||
"//base/inputmethod/imf/frameworks/inputmethod_controller:inputmethod_client",
|
||||
"//base/inputmethod/imf/services:inputmethod_service",
|
||||
"//foundation/arkui/napi/:ace_napi",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single",
|
||||
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
|
||||
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
"${ability_runtime_inner_api_path}/ability_manager:ability_manager",
|
||||
"${ability_runtime_services_path}/abilitymgr:abilityms",
|
||||
"//base/inputmethod/imf/frameworks/inputmethod_ability:inputmethod_ability",
|
||||
"//base/inputmethod/imf/frameworks/inputmethod_controller:inputmethod_client",
|
||||
"//base/inputmethod/imf/services:inputmethod_service",
|
||||
"//foundation/arkui/napi/:ace_napi",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single",
|
||||
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
|
||||
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ability_base:want",
|
||||
|
@ -60,33 +60,33 @@ public:
|
||||
}
|
||||
void InsertText(const std::u16string &text)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener InsertText");
|
||||
IMSA_HILOGI("SERVICE TEST TextListener InsertText");
|
||||
}
|
||||
|
||||
void DeleteBackward(int32_t length)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener DeleteBackward length: %{public}d", length);
|
||||
IMSA_HILOGI("SERVICE TEST TextListener DeleteBackward length: %{public}d", length);
|
||||
}
|
||||
|
||||
void SetKeyboardStatus(bool status)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener SetKeyboardStatus %{public}d", status);
|
||||
IMSA_HILOGI("SERVICE TEST TextListener SetKeyboardStatus %{public}d", status);
|
||||
}
|
||||
void DeleteForward(int32_t length)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener DeleteForward length: %{public}d", length);
|
||||
IMSA_HILOGI("SERVICE TEST TextListener DeleteForward length: %{public}d", length);
|
||||
}
|
||||
void SendKeyEventFromInputMethod(const KeyEvent &event)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener sendKeyEventFromInputMethod");
|
||||
IMSA_HILOGI("SERVICE TEST TextListener sendKeyEventFromInputMethod");
|
||||
}
|
||||
void SendKeyboardInfo(const KeyboardInfo &status)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener SendKeyboardInfo");
|
||||
IMSA_HILOGI("SERVICE TEST TextListener SendKeyboardInfo");
|
||||
}
|
||||
void MoveCursor(const Direction direction)
|
||||
{
|
||||
IMSA_HILOGI("IMC TEST TextListener MoveCursor");
|
||||
IMSA_HILOGI("SERVICE TEST TextListener MoveCursor");
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user