Index: content/test/fileapi_test_file_set.cc |
diff --git a/content/test/fileapi_test_file_set.cc b/content/test/fileapi_test_file_set.cc |
index f8e14e67a86a429287bb14e06efa5919e0d188f8..8c2636ab659f845ec2a9b599427e58d1cedccb04 100644 |
--- a/content/test/fileapi_test_file_set.cc |
+++ b/content/test/fileapi_test_file_set.cc |
@@ -4,6 +4,9 @@ |
#include "content/test/fileapi_test_file_set.h" |
+#include <stdint.h> |
+ |
+#include <limits> |
#include <string> |
#include "base/files/file.h" |
@@ -50,7 +53,7 @@ void SetUpOneFileSystemTestCase(const base::FilePath& root_path, |
ASSERT_TRUE(file.IsValid()); |
if (test_case.data_file_size) { |
std::string content = base::RandBytesAsString(test_case.data_file_size); |
- EXPECT_LE(test_case.data_file_size, kint32max); |
+ EXPECT_LE(test_case.data_file_size, std::numeric_limits<int32_t>::max()); |
ASSERT_EQ(static_cast<int>(content.size()), |
file.Write(0, content.data(), static_cast<int>(content.size()))); |
} |