Skip to content

Commit

Permalink
Use IS_STARBOARD for file.
Browse files Browse the repository at this point in the history
  • Loading branch information
y4vor committed Feb 24, 2025
1 parent 36351fe commit 9601e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions base/files/file_util_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
#include <sys/socket.h>
#endif

#if BUILDFLAG(IS_LINUX) && !defined(IS_COBALT_HERMETIC_BUILD) || BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_STARBOARD) || BUILDFLAG(IS_CHROMEOS)
#include <linux/fs.h>
#endif

Expand Down Expand Up @@ -1912,7 +1912,7 @@ TEST_F(FileUtilTest, DeleteDirRecursiveWithOpenFile) {
File::FLAG_CREATE | File::FLAG_READ | File::FLAG_WRITE);
ASSERT_TRUE(PathExists(file_name3));

#if BUILDFLAG(IS_LINUX) && !defined(IS_COBALT_HERMETIC_BUILD) || BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_STARBOARD) || BUILDFLAG(IS_CHROMEOS)
// On Windows, holding the file open in sufficient to make it un-deletable.
// The POSIX code is verifiable on Linux by creating an "immutable" file but
// this is best-effort because it's not supported by all file systems. Both
Expand All @@ -1933,7 +1933,7 @@ TEST_F(FileUtilTest, DeleteDirRecursiveWithOpenFile) {
DeletePathRecursively(test_subdir);
EXPECT_FALSE(PathExists(file_name2));

#if BUILDFLAG(IS_LINUX) && !defined(IS_COBALT_HERMETIC_BUILD) || BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_STARBOARD) || BUILDFLAG(IS_CHROMEOS)
// Make sure that the test can clean up after itself.
if (file_attrs_supported) {
flags &= ~FS_IMMUTABLE_FL;
Expand Down
2 changes: 1 addition & 1 deletion base/files/important_file_writer_cleaner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace base {
namespace {

base::Time GetUpperBoundTime() {
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_FUCHSIA) || defined(IS_COBALT_HERMETIC_BUILD)
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_STARBOARD)
// If process creation time is not available then use instance creation
// time as the upper-bound for old files. Modification times may be
// rounded-down to coarse-grained increments, e.g. FAT has 2s granularity,
Expand Down

0 comments on commit 9601e0a

Please sign in to comment.