| Index: base/file_util_unittest.cc
|
| diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
|
| index 175e9cdc39cf3bdee6799e63c9cb148534871d1a..83f211f5e95218e3acf184d4b5a0d4766bacdfff 100644
|
| --- a/base/file_util_unittest.cc
|
| +++ b/base/file_util_unittest.cc
|
| @@ -632,6 +632,17 @@ TEST_F(FileUtilTest, DeleteNonExistent) {
|
| ASSERT_FALSE(PathExists(non_existent));
|
| }
|
|
|
| +TEST_F(FileUtilTest, DeleteNonExistentWithNonExistentParent) {
|
| + FilePath non_existent = temp_dir_.path().AppendASCII("bogus_topdir");
|
| + non_existent = non_existent.AppendASCII("bogus_subdir");
|
| + ASSERT_FALSE(PathExists(non_existent));
|
| +
|
| + EXPECT_TRUE(DeleteFile(non_existent, false));
|
| + ASSERT_FALSE(PathExists(non_existent));
|
| + EXPECT_TRUE(DeleteFile(non_existent, true));
|
| + ASSERT_FALSE(PathExists(non_existent));
|
| +}
|
| +
|
| TEST_F(FileUtilTest, DeleteFile) {
|
| // Create a file
|
| FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteFile 1.txt"));
|
|
|