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

Unified Diff: content/test/fileapi_test_file_set.cc

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
Patch Set: rebase 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 | « content/renderer/dom_storage/dom_storage_cached_area.cc ('k') | media/base/android/media_codec_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())));
}
« no previous file with comments | « content/renderer/dom_storage/dom_storage_cached_area.cc ('k') | media/base/android/media_codec_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698