diff --git a/inputdevicehandler/test/inputhandlertest/distributed_input_handler_test.cpp b/inputdevicehandler/test/inputhandlertest/distributed_input_handler_test.cpp index 979a5cd..bcf713b 100644 --- a/inputdevicehandler/test/inputhandlertest/distributed_input_handler_test.cpp +++ b/inputdevicehandler/test/inputhandlertest/distributed_input_handler_test.cpp @@ -58,11 +58,10 @@ HWTEST_F(DInputHandlerTest, FindDevicesInfoByType_001, testing::ext::TestSize.Le uint32_t inputTypes = static_cast(DInputDeviceType::ALL); std::map datas; std::vector dhidsVec; - std::string deviceId = "deviceId_test"; dInputHandler.FindDevicesInfoByType(inputTypes, datas); dInputHandler.FindDevicesInfoByDhId(dhidsVec, datas); dInputHandler.Query(); - dInputHandler.StartInputMonitorDeviceThread(deviceId); + dInputHandler.StartInputMonitorDeviceThread(); InputDevice inputDevice; dInputHandler.mEventBuffer[0].type = DeviceType::DEVICE_ADDED; @@ -77,7 +76,7 @@ HWTEST_F(DInputHandlerTest, FindDevicesInfoByType_001, testing::ext::TestSize.Le std::map ret = dInputHandler.QueryExtraInfo(); EXPECT_EQ(0, ret.size()); dInputHandler.inputHub_ = std::make_unique(); - dInputHandler.StartInputMonitorDeviceThread(deviceId); + dInputHandler.StartInputMonitorDeviceThread(); } } // namespace DistributedInput } // namespace DistributedHardware