Lines Matching refs:new_path
291 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile"));
292 EXPECT_FALSE(base::PathExists(new_path));
296 EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path));
298 EXPECT_TRUE(base::PathExists(new_path));
429 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile"));
430 EXPECT_FALSE(base::PathExists(new_path));
435 base_file_->Rename(new_path));
437 EXPECT_TRUE(base::PathExists(new_path));
448 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile"));
449 EXPECT_FALSE(base::PathExists(new_path));
454 EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path));
456 EXPECT_TRUE(base::PathExists(new_path));
472 base::FilePath new_path(test_dir.AppendASCII("TestFile"));
473 EXPECT_FALSE(base::PathExists(new_path));
478 ExpectPermissionError(base_file_->Rename(new_path));
492 base::FilePath new_path(test_dir.AppendASCII("TestFile"));
493 EXPECT_FALSE(base::PathExists(new_path));
504 ExpectPermissionError(base_file_->Rename(new_path));
513 ExpectPermissionError(base_file_->Rename(new_path));
518 EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path));
519 ASSERT_EQ(new_path.value(), base_file_->full_path().value());
529 ASSERT_TRUE(base::ReadFileToString(new_path, &file_contents));