Index: base/test/test_file_util_posix.cc |
diff --git a/base/test/test_file_util_posix.cc b/base/test/test_file_util_posix.cc |
index 0350ccc0f0e5ee8551e6a5b098de9ac4c53c86a2..fc4af5fac69b565a3d63837ca8176536e7eea968 100644 |
--- a/base/test/test_file_util_posix.cc |
+++ b/base/test/test_file_util_posix.cc |
@@ -85,6 +85,14 @@ bool EvictFileFromSystemCache(const FilePath& file) { |
} |
#endif |
+bool MakeFileUnreadable(const FilePath& path) { |
+ return DenyFilePermission(path, S_IRUSR | S_IRGRP | S_IROTH); |
+} |
+ |
+bool MakeFileUnwritable(const FilePath& path) { |
+ return DenyFilePermission(path, S_IWUSR | S_IWGRP | S_IWOTH); |
+} |
+ |
} // namespace base |
namespace file_util { |
@@ -93,14 +101,6 @@ using base::DenyFilePermission; |
using base::GetPermissionInfo; |
using base::RestorePermissionInfo; |
-bool MakeFileUnreadable(const base::FilePath& path) { |
- return DenyFilePermission(path, S_IRUSR | S_IRGRP | S_IROTH); |
-} |
- |
-bool MakeFileUnwritable(const base::FilePath& path) { |
- return DenyFilePermission(path, S_IWUSR | S_IWGRP | S_IWOTH); |
-} |
- |
PermissionRestorer::PermissionRestorer(const base::FilePath& path) |
rvargas (doing something else)
2014/08/06 23:21:49
base::FilePermissionRestorer
|
: path_(path), info_(NULL), length_(0) { |
info_ = GetPermissionInfo(path_, &length_); |