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

Unified Diff: net/disk_cache/blockfile/bitmap_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/bitmap.cc ('k') | net/disk_cache/blockfile/block_bitmaps_v3.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/bitmap_unittest.cc
diff --git a/net/disk_cache/blockfile/bitmap_unittest.cc b/net/disk_cache/blockfile/bitmap_unittest.cc
index a0748bf81a54b5f47a566bd513fcdb7d10f876af..29d8739246e78a243356ff7422acaddb6b0da97b 100644
--- a/net/disk_cache/blockfile/bitmap_unittest.cc
+++ b/net/disk_cache/blockfile/bitmap_unittest.cc
@@ -24,7 +24,7 @@ TEST(BitmapTest, DefaultConstructor) {
TEST(BitmapTest, Basics) {
disk_cache::Bitmap bitmap(80, true);
- const uint32 kValue = 0x74f10060;
+ const uint32_t kValue = 0x74f10060;
// Test proper allocation size.
EXPECT_EQ(80, bitmap.Size());
@@ -94,7 +94,7 @@ TEST(BitmapTest, Map) {
local_map[i] = static_cast<char>(i);
disk_cache::Bitmap bitmap(kMapSize * 8, false);
- bitmap.SetMap(reinterpret_cast<uint32*>(local_map), kMapSize / 4);
+ bitmap.SetMap(reinterpret_cast<uint32_t*>(local_map), kMapSize / 4);
for (int i = 0; i < kMapSize; i++) {
if (i % 2)
EXPECT_TRUE(bitmap.Get(i * 8));
@@ -105,7 +105,7 @@ TEST(BitmapTest, Map) {
EXPECT_EQ(0, memcmp(local_map, bitmap.GetMap(), kMapSize));
// Now let's create a bitmap that shares local_map as storage.
- disk_cache::Bitmap bitmap2(reinterpret_cast<uint32*>(local_map),
+ disk_cache::Bitmap bitmap2(reinterpret_cast<uint32_t*>(local_map),
kMapSize * 8, kMapSize / 4);
EXPECT_EQ(0, memcmp(local_map, bitmap2.GetMap(), kMapSize));
« no previous file with comments | « net/disk_cache/blockfile/bitmap.cc ('k') | net/disk_cache/blockfile/block_bitmaps_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698