Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2800)

Unified Diff: base/files/file_util.cc

Issue 1154313003: Non-SFI mode: Implement test launcher for nacl_helper_nonsfi_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base_nacl.gyp ('k') | base/files/file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util.cc
diff --git a/base/files/file_util.cc b/base/files/file_util.cc
index 32dab6bd40d8ee6b0113522259a8b2ff123f5712..4b6b8886d8ad5d8bc0fd4855b10c97db52420d2e 100644
--- a/base/files/file_util.cc
+++ b/base/files/file_util.cc
@@ -22,6 +22,7 @@
namespace base {
+#if !defined(OS_NACL_NONSFI)
namespace {
// The maximum number of 'uniquified' files we will try to create.
@@ -120,6 +121,7 @@ bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) {
return true;
}
+#endif // !defined(OS_NACL_NONSFI)
bool ReadFileToString(const FilePath& path,
std::string* contents,
@@ -162,6 +164,7 @@ bool ReadFileToString(const FilePath& path, std::string* contents) {
return ReadFileToString(path, contents, std::numeric_limits<size_t>::max());
}
+#if !defined(OS_NACL_NONSFI)
bool IsDirectoryEmpty(const FilePath& dir_path) {
FileEnumerator files(dir_path, false,
FileEnumerator::FILES | FileEnumerator::DIRECTORIES);
@@ -207,6 +210,7 @@ bool TouchFile(const FilePath& path,
return file.SetTimes(last_accessed, last_modified);
}
+#endif // !defined(OS_NACL_NONSFI)
bool CloseFile(FILE* file) {
if (file == NULL)
@@ -214,6 +218,7 @@ bool CloseFile(FILE* file) {
return fclose(file) == 0;
}
+#if !defined(OS_NACL_NONSFI)
bool TruncateFile(FILE* file) {
if (file == NULL)
return false;
@@ -251,5 +256,6 @@ int GetUniquePathNumber(const FilePath& path,
return -1;
}
+#endif // !defined(OS_NACL_NONSFI)
} // namespace base
« no previous file with comments | « base/base_nacl.gyp ('k') | base/files/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698