Index: chrome/browser/download/download_file_unittest.cc |
diff --git a/chrome/browser/download/download_file_unittest.cc b/chrome/browser/download/download_file_unittest.cc |
index f4a2a28c03af36a5a7cfd8e2b4ddbfaaac2c695e..3a39eff75a59823d7c83142dbb229208501ed57c 100644 |
--- a/chrome/browser/download/download_file_unittest.cc |
+++ b/chrome/browser/download/download_file_unittest.cc |
@@ -128,7 +128,9 @@ const int DownloadFileTest::kDummyRequestId = 67; |
// has, and after it's closed. |
TEST_F(DownloadFileTest, RenameFileFinal) { |
CreateDownloadFile(&download_file_, 0); |
- ASSERT_TRUE(download_file_->Initialize(true)); |
+ ScopedTempDir temp_dir; |
+ ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); |
+ ASSERT_TRUE(download_file_->Initialize(true, temp_dir.path())); |
FilePath initial_path(download_file_->full_path()); |
EXPECT_TRUE(file_util::PathExists(initial_path)); |
FilePath path_1(initial_path.InsertBeforeExtensionASCII("_1")); |