Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1006)

Unified Diff: components/drive/service/fake_drive_service_unittest.cc

Issue 2317993003: //chrome/browser and //components A-E: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/drive/search_metadata_unittest.cc ('k') | components/drive/sync_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « components/drive/search_metadata_unittest.cc ('k') | components/drive/sync_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698