mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-30 18:31:01 +00:00
modify UT
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
2a77f087f1
commit
10a9c92e1e
@ -515,6 +515,7 @@ int32_t InputMethodSystemAbility::OnSwitchInputMethod(const SwitchInfo &switchIn
|
||||
if (!switchQueue_.IsReady(switchInfo)) {
|
||||
IMSA_HILOGD("start wait");
|
||||
switchQueue_.Wait(switchInfo);
|
||||
usleep(SWITCH_BLOCK_TIME);
|
||||
}
|
||||
IMSA_HILOGI("start switch %{public}s|%{public}s", switchInfo.bundleName.c_str(), switchInfo.subName.c_str());
|
||||
int32_t ret = CheckSwitchPermission(switchInfo, trigger);
|
||||
|
@ -62,7 +62,10 @@ void InputMethodPrivateMemberTest::SetUpTestCase(void)
|
||||
void InputMethodPrivateMemberTest::TearDownTestCase(void)
|
||||
{
|
||||
service_->OnStop();
|
||||
TddUtil::StorageSelfTokenID();
|
||||
TddUtil::GrantNativePermission();
|
||||
TddUtil::KillImsaProcess();
|
||||
TddUtil::RestoreSelfTokenID();
|
||||
IMSA_HILOGI("InputMethodPrivateMemberTest::TearDownTestCase");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user