summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-10 11:41:47 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-10 19:42:59 +0000
commitd0181f31d10f5126e836fd38bd6bf54d4c4d4872 (patch)
treef94d6cc687a74cb9998e031a6de03a15d07f3fe5 /content/test
parent2040edbe49bb9dd7dc188607867136c048f9511e (diff)
downloadchromium_src-d0181f31d10f5126e836fd38bd6bf54d4c4d4872.zip
chromium_src-d0181f31d10f5126e836fd38bd6bf54d4c4d4872.tar.gz
chromium_src-d0181f31d10f5126e836fd38bd6bf54d4c4d4872.tar.bz2
Remove kint32max.
BUG=138542, 488550 Review URL: https://codereview.chromium.org/1499423004 Cr-Commit-Position: refs/heads/master@{#364429}
Diffstat (limited to 'content/test')
-rw-r--r--content/test/fileapi_test_file_set.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/test/fileapi_test_file_set.cc b/content/test/fileapi_test_file_set.cc
index f8e14e6..8c2636a 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())));
}