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

Unified Diff: net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 | « net/disk_cache/blockfile/block_bitmaps_v3.cc ('k') | net/disk_cache/blockfile/block_files.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc
diff --git a/net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc b/net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc
index bf22d8824f6c355ed6ee4e87a944ddbfbbde9938..64ca115cded031980a26b33f4303c20507cff915 100644
--- a/net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc
+++ b/net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc
@@ -19,7 +19,7 @@ TEST(DiskCacheBlockBitmaps, V3AllocationMap) {
memset(&headers[i], 0, sizeof(headers[i]));
headers[i].magic = disk_cache::kBlockMagic;
headers[i].version = disk_cache::kBlockCurrentVersion;
- headers[i].this_file = static_cast<int16>(i);
+ headers[i].this_file = static_cast<int16_t>(i);
headers[i].empty[3] = 200;
headers[i].max_entries = 800;
bitmaps.push_back(disk_cache::BlockHeader(&headers[i]));
@@ -51,7 +51,7 @@ TEST(DiskCacheBlockBitmaps, V3AllocationMap) {
// The first part of the allocation map should be completely filled. We used
// 10 bits per each of four entries, so 250 bits total. All entries should go
// to the third file.
- uint8* buffer = reinterpret_cast<uint8*>(&headers[2].allocation_map);
+ uint8_t* buffer = reinterpret_cast<uint8_t*>(&headers[2].allocation_map);
for (int i = 0; i < 29; i++) {
SCOPED_TRACE(i);
EXPECT_EQ(0xff, buffer[i]);
« no previous file with comments | « net/disk_cache/blockfile/block_bitmaps_v3.cc ('k') | net/disk_cache/blockfile/block_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698