From e470a03cddfd597e3a07149471a2abebe3763efd Mon Sep 17 00:00:00 2001 From: Science Date: Tue, 21 Nov 2023 09:39:39 +0000 Subject: [PATCH] update Signed-off-by: Science Change-Id: I24b36f0cc32cf88d02721500a9e63477866d5d0d --- .../test/unittest/src/interaction_manager_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/interaction/test/unittest/src/interaction_manager_test.cpp b/frameworks/native/interaction/test/unittest/src/interaction_manager_test.cpp index 8b7939873..c288b468b 100644 --- a/frameworks/native/interaction/test/unittest/src/interaction_manager_test.cpp +++ b/frameworks/native/interaction/test/unittest/src/interaction_manager_test.cpp @@ -515,7 +515,7 @@ void InteractionManagerTest::SimulateDownKeyEvent(int32_t key) CALL_DEBUG_ENTER; SetupKeyEvent(MMI::KeyEvent::KEY_ACTION_DOWN, key, true); FI_HILOGD("TEST:keyCode:%{public}d, keyAction: KEY_ACTION_DOWN", key); - MMI::InputManager::GetInstance()->SimulateInputEvent(keyEvent); + MMI::InputManager::GetInstance()->SimulateInputEvent(g_keyEvent); } void InteractionManagerTest::SimulateUpKeyEvent(int32_t key) @@ -523,7 +523,7 @@ void InteractionManagerTest::SimulateUpKeyEvent(int32_t key) CALL_DEBUG_ENTER; SetupKeyEvent(MMI::KeyEvent::KEY_ACTION_UP, key, false); FI_HILOGD("TEST:keyCode:%{public}d, keyAction: KEY_ACTION_UP", key); - MMI::InputManager::GetInstance()->SimulateInputEvent(keyEvent); + MMI::InputManager::GetInstance()->SimulateInputEvent(g_keyEvent); } void InteractionManagerTest::PrintDragAction(DragAction dragAction)