| Index: components/drive/service/fake_drive_service_unittest.cc
|
| diff --git a/components/drive/service/fake_drive_service_unittest.cc b/components/drive/service/fake_drive_service_unittest.cc
|
| index eae7f4353b5bdfc5e780f63358e6b29ce45017e8..77c8fdee7fb1874e1f9a0ab6a9c096751785cedd 100644
|
| --- a/components/drive/service/fake_drive_service_unittest.cc
|
| +++ b/components/drive/service/fake_drive_service_unittest.cc
|
| @@ -987,7 +987,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_ExistingFile) {
|
| std::vector<test_util::ProgressInfo> download_progress_values;
|
|
|
| const base::FilePath kOutputFilePath =
|
| - temp_dir.path().AppendASCII("whatever.txt");
|
| + temp_dir.GetPath().AppendASCII("whatever.txt");
|
| DriveApiErrorCode error = DRIVE_OTHER_ERROR;
|
| base::FilePath output_file_path;
|
| test_util::TestGetContentCallback get_content_callback;
|
| @@ -1019,7 +1019,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_NonexistingFile) {
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
|
|
| const base::FilePath kOutputFilePath =
|
| - temp_dir.path().AppendASCII("whatever.txt");
|
| + temp_dir.GetPath().AppendASCII("whatever.txt");
|
| DriveApiErrorCode error = DRIVE_OTHER_ERROR;
|
| base::FilePath output_file_path;
|
| fake_service_.DownloadFile(
|
| @@ -1041,7 +1041,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_Offline) {
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
|
|
| const base::FilePath kOutputFilePath =
|
| - temp_dir.path().AppendASCII("whatever.txt");
|
| + temp_dir.GetPath().AppendASCII("whatever.txt");
|
| DriveApiErrorCode error = DRIVE_OTHER_ERROR;
|
| base::FilePath output_file_path;
|
| fake_service_.DownloadFile(
|
| @@ -1803,7 +1803,7 @@ TEST_F(FakeDriveServiceTest, ResumeUpload_ExistingFile) {
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| base::FilePath local_file_path =
|
| - temp_dir.path().Append(FILE_PATH_LITERAL("File 1.txt"));
|
| + temp_dir.GetPath().Append(FILE_PATH_LITERAL("File 1.txt"));
|
| std::string contents("hogefugapiyo");
|
| ASSERT_TRUE(test_util::WriteStringToFile(local_file_path, contents));
|
|
|
| @@ -1873,7 +1873,7 @@ TEST_F(FakeDriveServiceTest, ResumeUpload_NewFile) {
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| base::FilePath local_file_path =
|
| - temp_dir.path().Append(FILE_PATH_LITERAL("new file.foo"));
|
| + temp_dir.GetPath().Append(FILE_PATH_LITERAL("new file.foo"));
|
| std::string contents("hogefugapiyo");
|
| ASSERT_TRUE(test_util::WriteStringToFile(local_file_path, contents));
|
|
|
|
|