summaryrefslogtreecommitdiffstats
path: root/base/test
diff options
context:
space:
mode:
Diffstat (limited to 'base/test')
-rw-r--r--base/test/test_file_util_mac.cc10
-rw-r--r--base/test/test_file_util_posix.cc16
2 files changed, 13 insertions, 13 deletions
diff --git a/base/test/test_file_util_mac.cc b/base/test/test_file_util_mac.cc
index 7145e51..903b475 100644
--- a/base/test/test_file_util_mac.cc
+++ b/base/test/test_file_util_mac.cc
@@ -19,27 +19,27 @@ bool EvictFileFromSystemCache(const FilePath& file) {
int64 length;
if (!file_util::GetFileSize(file, &length)) {
- DLOG(ERROR) << "failed to get size of " << file.value();
+ LOG(ERROR) << "failed to get size of " << file.value();
return false;
}
// When a file is empty, we do not need to evict it from cache.
// In fact, an attempt to map it to memory will result in error.
if (length == 0) {
- DLOG(WARNING) << "file size is zero, will not attempt to map to memory";
+ LOG(WARNING) << "file size is zero, will not attempt to map to memory";
return true;
}
file_util::MemoryMappedFile mapped_file;
if (!mapped_file.Initialize(file)) {
- DLOG(WARNING) << "failed to memory map " << file.value();
+ LOG(WARNING) << "failed to memory map " << file.value();
return false;
}
if (msync(const_cast<uint8*>(mapped_file.data()), mapped_file.length(),
MS_INVALIDATE) != 0) {
- DLOG(WARNING) << "failed to invalidate memory map of " << file.value()
- << ", errno: " << errno;
+ LOG(WARNING) << "failed to invalidate memory map of " << file.value()
+ << ", errno: " << errno;
return false;
}
diff --git a/base/test/test_file_util_posix.cc b/base/test/test_file_util_posix.cc
index 0096c9e..cca17b59 100644
--- a/base/test/test_file_util_posix.cc
+++ b/base/test/test_file_util_posix.cc
@@ -73,8 +73,8 @@ bool CopyRecursiveDirNoCache(const FilePath& source_dir,
FileEnumerator::FindInfo info;
FilePath current = source_dir;
if (stat(source_dir.value().c_str(), &info.stat) < 0) {
- DLOG(ERROR) << "CopyRecursiveDirNoCache() couldn't stat source directory: "
- << source_dir.value() << " errno = " << errno;
+ LOG(ERROR) << "CopyRecursiveDirNoCache() couldn't stat source directory: "
+ << source_dir.value() << " errno = " << errno;
success = false;
}
@@ -92,8 +92,8 @@ bool CopyRecursiveDirNoCache(const FilePath& source_dir,
if (S_ISDIR(info.stat.st_mode)) {
if (mkdir(target_path.value().c_str(), info.stat.st_mode & 01777) != 0 &&
errno != EEXIST) {
- DLOG(ERROR) << "CopyRecursiveDirNoCache() couldn't create directory: "
- << target_path.value() << " errno = " << errno;
+ LOG(ERROR) << "CopyRecursiveDirNoCache() couldn't create directory: " <<
+ target_path.value() << " errno = " << errno;
success = false;
}
} else if (S_ISREG(info.stat.st_mode)) {
@@ -101,13 +101,13 @@ bool CopyRecursiveDirNoCache(const FilePath& source_dir,
success = EvictFileFromSystemCache(target_path);
DCHECK(success);
} else {
- DLOG(ERROR) << "CopyRecursiveDirNoCache() couldn't create file: "
- << target_path.value();
+ LOG(ERROR) << "CopyRecursiveDirNoCache() couldn't create file: " <<
+ target_path.value();
success = false;
}
} else {
- DLOG(WARNING) << "CopyRecursiveDirNoCache() skipping non-regular file: "
- << current.value();
+ LOG(WARNING) << "CopyRecursiveDirNoCache() skipping non-regular file: " <<
+ current.value();
}
current = traversal.Next();