Index: base/file_util_unittest.cc |
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc |
index 49dd5ad3587761f1b64a5b51db063dcd2c8ab16d..df447ab9b4e3927b9a80c8d3d0e52278d390b218 100644 |
--- a/base/file_util_unittest.cc |
+++ b/base/file_util_unittest.cc |
@@ -1411,16 +1411,7 @@ TEST_F(FileUtilTest, CopyDirectoryACL) { |
FilePath dst_file = dst.Append(FILE_PATH_LITERAL("src.txt")); |
EXPECT_TRUE(CopyDirectory(src, dst, true)); |
-#if defined(OS_WIN) |
- // While the source file had RO bit set, the copied file doesn't. |
- ASSERT_FALSE(IsReadOnly(dst_file)); |
-#elif defined(OS_MACOSX) |
- // On OSX, file mode is copied. |
- ASSERT_TRUE(IsReadOnly(dst_file)); |
-#else |
- // On other POSIX, file mode is not copied. |
ASSERT_FALSE(IsReadOnly(dst_file)); |
-#endif |
} |
TEST_F(FileUtilTest, CopyFile) { |
@@ -1479,17 +1470,7 @@ TEST_F(FileUtilTest, CopyFileACL) { |
ASSERT_TRUE(CopyFile(src, dst)); |
EXPECT_EQ(file_contents, ReadTextFile(dst)); |
-#if defined(OS_WIN) |
- // While the source file had RO bit set, the copied file doesn't. Other file |
- // modes are copied. |
- ASSERT_FALSE(IsReadOnly(dst)); |
-#elif defined(OS_MACOSX) |
- // On OSX, file mode is copied. |
- ASSERT_TRUE(IsReadOnly(dst)); |
-#else |
- // On other POSIX, file mode is not copied. |
ASSERT_FALSE(IsReadOnly(dst)); |
-#endif |
} |
// file_util winds up using autoreleased objects on the Mac, so this needs |