aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc')
-rw-r--r--devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc b/devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc
new file mode 100644
index 000000000000..dbaf2a8a80e0
--- /dev/null
+++ b/devel/electron37/files/patch-base_files_file__path__watcher__unittest.cc
@@ -0,0 +1,29 @@
+--- base/files/file_path_watcher_unittest.cc.orig 2024-08-14 20:54:23 UTC
++++ base/files/file_path_watcher_unittest.cc
+@@ -902,7 +902,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) {
+ }
+ delegate.RunUntilEventsMatch(event_expecter);
+
+-#if !BUILDFLAG(IS_APPLE)
++#if !BUILDFLAG(IS_APPLE) && BUILDFLAG(IS_BSD)
+ ASSERT_TRUE(WriteFile(file1, "content v2"));
+ // Mac implementation does not detect files modified in a directory.
+ // TODO(crbug.com/40263777): Expect that no events are fired on Mac.
+@@ -1848,7 +1848,7 @@ enum Permission { Read, Write, Execute };
+
+ enum Permission { Read, Write, Execute };
+
+-#if BUILDFLAG(IS_APPLE)
++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD)
+ bool ChangeFilePermissions(const FilePath& path, Permission perm, bool allow) {
+ struct stat stat_buf;
+
+@@ -1882,7 +1882,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi
+
+ } // namespace
+
+-#if BUILDFLAG(IS_APPLE)
++#if BUILDFLAG(IS_APPLE) && BUILDFLAG(IS_BSD)
+ // Linux implementation of FilePathWatcher doesn't catch attribute changes.
+ // http://crbug.com/78043
+ // Windows implementation of FilePathWatcher catches attribute changes that