From 033f0375be351c5acdb7b049102dabdd77182fb0 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Mon, 28 Aug 2023 11:42:51 +0800 Subject: [PATCH] =?UTF-8?q?share=20media=20uri=E4=BF=AE=E6=94=B9=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E7=89=A9=E7=90=86=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lvyuanyuan Change-Id: Ifdea46305c888c3d2464f989e16f86d3620ce528 --- interfaces/common/src/sandbox_helper.cpp | 2 +- test/unittest/file_share_native/file_share_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/common/src/sandbox_helper.cpp b/interfaces/common/src/sandbox_helper.cpp index 4f1b0ae1a..470b941af 100644 --- a/interfaces/common/src/sandbox_helper.cpp +++ b/interfaces/common/src/sandbox_helper.cpp @@ -36,7 +36,7 @@ namespace { const string MOUNT_PATH_MAP_KEY = "mount-path-map"; const string SANDBOX_JSON_FILE_PATH = "/etc/app_file_service/file_share_sandbox.json"; const std::string SHAER_PATH_HEAD = "/mnt/hmdfs/"; - const std::string SHAER_PATH_MID = "/account/merge_view/files/"; + const std::string SHAER_PATH_MID = "/account/cloud_merge_view/files/"; const string FILE_MANAGER_URI_HEAD = "/storage/"; const string FILE_MANAGER_AUTHORITY = "docs"; const string DLP_MANAGER_BUNDLE_NAME = "com.ohos.dlpmanager"; diff --git a/test/unittest/file_share_native/file_share_test.cpp b/test/unittest/file_share_native/file_share_test.cpp index 5d1c70425..82c7a3b84 100644 --- a/test/unittest/file_share_native/file_share_test.cpp +++ b/test/unittest/file_share_native/file_share_test.cpp @@ -289,7 +289,7 @@ namespace { std::string physicalPath; int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); EXPECT_EQ(ret, E_OK); - EXPECT_EQ(physicalPath, "/mnt/hmdfs/100/account/merge_view/files/Photo/11/IMG_12345_0011.jpg"); + EXPECT_EQ(physicalPath, "/mnt/hmdfs/100/account/cloud_merge_view/files/Photo/11/IMG_12345_0011.jpg"); GTEST_LOG_(INFO) << "FileShareTest-end File_share_GetPhysicalPath_0001"; } @@ -362,7 +362,7 @@ namespace { std::string physicalPath; int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); EXPECT_EQ(ret, E_OK); - EXPECT_EQ(physicalPath, "/mnt/hmdfs/100/account/merge_view/files/Photo/575/IMG_12345_999999.jpg"); + EXPECT_EQ(physicalPath, "/mnt/hmdfs/100/account/cloud_merge_view/files/Photo/575/IMG_12345_999999.jpg"); GTEST_LOG_(INFO) << "FileShareTest-end File_share_GetPhysicalPath_0005"; } } \ No newline at end of file -- Gitee