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

Unified Diff: base/test/test_file_util_mac.cc

Issue 1544113002: Switch to standard integer types in base/test/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/test/test_file_util.h ('k') | base/test/test_file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_file_util_mac.cc
diff --git a/base/test/test_file_util_mac.cc b/base/test/test_file_util_mac.cc
index 11592c31854f228f56b9b9b5dbc5a960c704d70b..174a31db2548f504cf43f57c58ff5896990d7b4d 100644
--- a/base/test/test_file_util_mac.cc
+++ b/base/test/test_file_util_mac.cc
@@ -6,6 +6,7 @@
#include <sys/mman.h>
#include <errno.h>
+#include <stdint.h>
#include "base/files/file_util.h"
#include "base/files/memory_mapped_file.h"
@@ -19,7 +20,7 @@ bool EvictFileFromSystemCache(const FilePath& file) {
// default) + MAP_SHARED, then do an msync to invalidate the memory. The next
// open should then have to load the file from disk.
- int64 length;
+ int64_t length;
if (!GetFileSize(file, &length)) {
DLOG(ERROR) << "failed to get size of " << file.value();
return false;
@@ -38,7 +39,7 @@ bool EvictFileFromSystemCache(const FilePath& file) {
return false;
}
- if (msync(const_cast<uint8*>(mapped_file.data()), mapped_file.length(),
+ if (msync(const_cast<uint8_t*>(mapped_file.data()), mapped_file.length(),
MS_INVALIDATE) != 0) {
DLOG(WARNING) << "failed to invalidate memory map of " << file.value()
<< ", errno: " << errno;
« no previous file with comments | « base/test/test_file_util.h ('k') | base/test/test_file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698