diff --git a/services/test/client/file_manager_proxy_test.cpp b/services/test/client/file_manager_proxy_test.cpp index 5b6e3fda7a5dfcb8a03205693dfb9b205a894c24..a1e817e94f1646127adfed31b2ddaf12cd63501c 100644 --- a/services/test/client/file_manager_proxy_test.cpp +++ b/services/test/client/file_manager_proxy_test.cpp @@ -44,25 +44,6 @@ void FileManagerProxyTest::SetUp() proxy_ = std::make_shared(mock_); } -/** - * @tc.number: SUB_STORAGE_File_Manager_Proxy_GetRoot_0000 - * @tc.name: File_Manager_Proxy_GetRoot_0000 - * @tc.desc: Test function of GetRoot interface for SUCCESS. - * @tc.size: MEDIUM - * @tc.type: FUNC - * @tc.level Level 1 - * @tc.require: AR000GJ9T3 - */ -HWTEST_F(FileManagerProxyTest, File_Manager_Proxy_GetRoot_0000, testing::ext::TestSize.Level1) -{ - GTEST_LOG_(INFO) << "FileManagerProxyTest-begin File_Manager_Proxy_GetRoot_0000"; - CmdOptions option; - std::vector> fileRes; - int ret = proxy_->GetRoot(option, fileRes); - ASSERT_TRUE(ret == 0); - GTEST_LOG_(INFO) << "FileManagerProxyTest-end File_Manager_Proxy_GetRoot_0000"; -} - /** * @tc.number: SUB_STORAGE_File_Manager_Proxy_GetFmsInstance_0000 * @tc.name: File_Manager_Proxy_GetFmsInstance_0000 @@ -105,52 +86,4 @@ HWTEST_F(FileManagerProxyTest, File_Manager_Proxy_Mkdir_0000, testing::ext::Test EXPECT_TRUE(ret == ERR_NONE); GTEST_LOG_(INFO) << "FileManagerProxyTest-end File_Manager_Proxy_Mkdir_0000"; } - -/** - * @tc.number: SUB_STORAGE_File_Manager_Proxy_ListFile_0000 - * @tc.name: File_Manager_Proxy_ListFile_0000 - * @tc.desc: Test function of ListFile interface for SUCCESS. - * @tc.size: MEDIUM - * @tc.type: FUNC - * @tc.level Level 1 - * @tc.require: AR000GJ9T3 - */ -HWTEST_F(FileManagerProxyTest, File_Manager_Proxy_ListFile_0000, testing::ext::TestSize.Level1) -{ - GTEST_LOG_(INFO) << "FileManagerProxyTest-begin File_Manager_Proxy_ListFile_0000"; - std::string type = "file"; - std::string path = "dataability:///album"; - CmdOptions option; - std::vector> fileRes; - EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) - .Times(1) - .WillOnce(testing::Invoke(mock_.GetRefPtr(), &FmsManagerProxyMock::InvokeSendRequest)); - int ret = proxy_->ListFile(type, path, option, fileRes); - ASSERT_TRUE(ret == ERR_NONE); - GTEST_LOG_(INFO) << "FileManagerProxyTest-end File_Manager_Proxy_ListFile_0000"; -} - -/** - * @tc.number: SUB_STORAGE_File_Manager_Proxy_CreateFile_0000 - * @tc.name: File_Manager_Proxy_CreateFile_0000 - * @tc.desc: Test function of CreateFile interface for SUCCESS. - * @tc.size: MEDIUM - * @tc.type: FUNC - * @tc.level Level 1 - * @tc.require: AR000GJ9T3 - */ -HWTEST_F(FileManagerProxyTest, File_Manager_Proxy_CreateFile_0000, testing::ext::TestSize.Level1) -{ - GTEST_LOG_(INFO) << "FileManagerProxyTest-begin File_Manager_Proxy_CreateFile_0000"; - std::string path = "dataability:///album"; - std::string fileName = "FMS_File_ManagerProxy_Mkdir_0000"; - CmdOptions option; - std::string uri; - EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) - .Times(1) - .WillOnce(testing::Invoke(mock_.GetRefPtr(), &FmsManagerProxyMock::InvokeSendRequest)); - int ret = proxy_->CreateFile(path, fileName, option, uri); - ASSERT_TRUE(ret == ERR_NONE); - GTEST_LOG_(INFO) << "FileManagerProxyTest-end File_Manager_Proxy_CreateFile_0000"; -} } // namespace \ No newline at end of file