diff --git a/test/native/mock/src/usb_core_mock_test.cpp b/test/native/mock/src/usb_core_mock_test.cpp index c6b05f317751884f4b443d6f8fb948c1a0bb60e0..479e713032ff1bdcc6767e0405d3374fcdc79156 100644 --- a/test/native/mock/src/usb_core_mock_test.cpp +++ b/test/native/mock/src/usb_core_mock_test.cpp @@ -73,7 +73,7 @@ bool UsbCoreMockTest::GetBundleName(std::string &bundleName) USB_HILOGE(MODULE_USB_SERVICE, "bundleMgr is nullptr"); return false; } - bundleMgr->GetBundleNameForUid(uid, bundleName); + bundleMgr->GetNameForUid(uid, bundleName); return true; }