Fixed the file implementations, they weren't using a mode, and the base path was always set to /tmp/.

We now get the systems idea of where the users download folder is and use that as the base path when receiving a file.

PiperOrigin-RevId: 406406731
This commit is contained in:
jfcarroll
2021-10-29 11:46:22 -07:00
committed by Copybara-Service
parent acf516189b
commit 44fad7d8fb
7 changed files with 57 additions and 17 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ TEST_F(InputFileTests, SuccessfulGetFilePath) {
EXPECT_EQ(inputFile->Close(),
location::nearby::Exception{location::nearby::Exception::kSuccess});
EXPECT_EQ(fileName, TEST_PATH);
EXPECT_EQ(fileName, test_utils::GetPayloadPath(payloadId).c_str());
}
TEST_F(InputFileTests, SuccessfulGetTotalSize) {