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

Unified Diff: content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc

Issue 214203002: Fix type conversion issues for Android x64 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 9 months 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 | « chrome/browser/renderer_host/web_cache_manager.cc ('k') | tools/android/file_poller/file_poller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc
===================================================================
--- content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc (revision 258902)
+++ content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc (working copy)
@@ -296,7 +296,7 @@
slice = StringPiece(&*v.begin(), v.size() - 1);
EXPECT_FALSE(DecodeVarInt(&slice, &res));
- slice = StringPiece(&*v.begin(), 0u);
+ slice = StringPiece(&*v.begin(), static_cast<size_t>(0));
EXPECT_FALSE(DecodeVarInt(&slice, &res));
// Verify decoding at an offset, to detect unaligned memory access.
@@ -408,7 +408,7 @@
slice = StringPiece(&*v.begin(), v.size() - 1);
EXPECT_FALSE(DecodeStringWithLength(&slice, &res));
- slice = StringPiece(&*v.begin(), 0u);
+ slice = StringPiece(&*v.begin(), static_cast<size_t>(0));
EXPECT_FALSE(DecodeStringWithLength(&slice, &res));
// Verify decoding at an offset, to detect unaligned memory access.
@@ -516,7 +516,7 @@
slice = StringPiece(&*v.begin(), v.size() - 1);
EXPECT_FALSE(DecodeBinary(&slice, &result));
- slice = StringPiece(&*v.begin(), 0u);
+ slice = StringPiece(&*v.begin(), static_cast<size_t>(0));
EXPECT_FALSE(DecodeBinary(&slice, &result));
// Verify decoding at an offset, to detect unaligned memory access.
@@ -557,7 +557,7 @@
slice = StringPiece(&*v.begin(), v.size() - 1);
EXPECT_FALSE(DecodeDouble(&slice, &result));
- slice = StringPiece(&*v.begin(), 0u);
+ slice = StringPiece(&*v.begin(), static_cast<size_t>(0));
EXPECT_FALSE(DecodeDouble(&slice, &result));
// Verify decoding at an offset, to detect unaligned memory access.
@@ -602,7 +602,7 @@
slice = StringPiece(&*v.begin(), v.size() - 1);
EXPECT_FALSE(DecodeIDBKey(&slice, &decoded_key));
- slice = StringPiece(&*v.begin(), 0u);
+ slice = StringPiece(&*v.begin(), static_cast<size_t>(0));
EXPECT_FALSE(DecodeIDBKey(&slice, &decoded_key));
}
}
« no previous file with comments | « chrome/browser/renderer_host/web_cache_manager.cc ('k') | tools/android/file_poller/file_poller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698