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

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

Issue 1910023002: Remove partial blockfile v3 disk_cache implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « net/disk_cache/blockfile/addr.cc ('k') | net/disk_cache/blockfile/backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/addr_unittest.cc
diff --git a/net/disk_cache/blockfile/addr_unittest.cc b/net/disk_cache/blockfile/addr_unittest.cc
index b62e31f79253d309b3813a981843bc65e286913a..dbb2dbc04e10b0c36325d980e44b0b8a13aeb2a0 100644
--- a/net/disk_cache/blockfile/addr_unittest.cc
+++ b/net/disk_cache/blockfile/addr_unittest.cc
@@ -36,24 +36,22 @@ TEST_F(DiskCacheTest, CacheAddr_InvalidValues) {
TEST_F(DiskCacheTest, CacheAddr_SanityCheck) {
// First a few valid values.
- EXPECT_TRUE(Addr(0).SanityCheckV2());
- EXPECT_TRUE(Addr(0x80001000).SanityCheckV2());
- EXPECT_TRUE(Addr(0xC3FFFFFF).SanityCheckV2());
- EXPECT_TRUE(Addr(0xC0FFFFFF).SanityCheckV2());
- EXPECT_TRUE(Addr(0xD0001000).SanityCheckV3());
+ EXPECT_TRUE(Addr(0).SanityCheck());
+ EXPECT_TRUE(Addr(0x80001000).SanityCheck());
+ EXPECT_TRUE(Addr(0xC3FFFFFF).SanityCheck());
+ EXPECT_TRUE(Addr(0xC0FFFFFF).SanityCheck());
// Not initialized.
- EXPECT_FALSE(Addr(0x20).SanityCheckV2());
- EXPECT_FALSE(Addr(0x10001000).SanityCheckV2());
+ EXPECT_FALSE(Addr(0x20).SanityCheck());
+ EXPECT_FALSE(Addr(0x10001000).SanityCheck());
// Invalid file type.
- EXPECT_FALSE(Addr(0xD0001000).SanityCheckV2());
- EXPECT_FALSE(Addr(0xE0001000).SanityCheckV3());
- EXPECT_FALSE(Addr(0xF0000000).SanityCheckV2());
+ EXPECT_FALSE(Addr(0xD0001000).SanityCheck());
+ EXPECT_FALSE(Addr(0xF0000000).SanityCheck());
// Reserved bits.
- EXPECT_FALSE(Addr(0x14000000).SanityCheckV2());
- EXPECT_FALSE(Addr(0x18000000).SanityCheckV2());
+ EXPECT_FALSE(Addr(0x14000000).SanityCheck());
+ EXPECT_FALSE(Addr(0x18000000).SanityCheck());
}
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/blockfile/addr.cc ('k') | net/disk_cache/blockfile/backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698