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

Unified Diff: components/storage_monitor/image_capture_device_manager_unittest.mm

Issue 2321453002: c/browser, c/common, components S-W: 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
Index: components/storage_monitor/image_capture_device_manager_unittest.mm
diff --git a/components/storage_monitor/image_capture_device_manager_unittest.mm b/components/storage_monitor/image_capture_device_manager_unittest.mm
index 22a07ded33de6f4764c0660ea6e983abd8bcadbd..09dd75f50b516890fef723127a7f3407d37602bc 100644
--- a/components/storage_monitor/image_capture_device_manager_unittest.mm
+++ b/components/storage_monitor/image_capture_device_manager_unittest.mm
@@ -358,7 +358,7 @@ TEST_F(ImageCaptureDeviceManagerTest, DownloadFile) {
// Test that a nonexistent file we ask to be downloaded will
// return us a not-found error.
- base::FilePath temp_file = temp_dir.path().Append("tempfile");
+ base::FilePath temp_file = temp_dir.GetPath().Append("tempfile");
[camera downloadFile:std::string("nonexistent") localPath:temp_file];
base::RunLoop().RunUntilIdle();
ASSERT_EQ(1U, listener_.downloads().size());
@@ -405,7 +405,7 @@ TEST_F(ImageCaptureDeviceManagerTest, TestSubdirectories) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath temp_file = temp_dir.path().Append("tempfile");
+ base::FilePath temp_file = temp_dir.GetPath().Append("tempfile");
[camera downloadFile:("dir/" + kTestFileName) localPath:temp_file];
base::RunLoop().RunUntilIdle();
« no previous file with comments | « components/sessions/core/session_backend_unittest.cc ('k') | components/storage_monitor/media_storage_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698