From 5459e7513ccd23169817681215db9bd7de0a81fe Mon Sep 17 00:00:00 2001 From: DW-23 Date: Thu, 10 Aug 2023 07:35:09 +0000 Subject: [PATCH] fix: using GetNameForUid to replace obsolete GetBundleNameForUid Signed-off-by: DW-23 --- test/native/mock/src/usb_core_mock_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/native/mock/src/usb_core_mock_test.cpp b/test/native/mock/src/usb_core_mock_test.cpp index c6b05f31..479e7130 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; } -- Gitee