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

Unified Diff: net/disk_cache/backend_unittest.cc

Issue 2922973003: RFC: use some in-memory state in SimpleCache to quickly cache-miss some CantConditionalize cases
Patch Set: cleanup naming in SimpleCache impl of this some Created 3 years, 6 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 | « no previous file | net/disk_cache/disk_cache.h » ('j') | net/disk_cache/simple/simple_index.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_unittest.cc
diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc
index fbf8689d29b997403ea8d7bfd63ab11dc4f32922..44aa52c52602bb35e1acab3dfea6012cf4dc9f8e 100644
--- a/net/disk_cache/backend_unittest.cc
+++ b/net/disk_cache/backend_unittest.cc
@@ -1937,11 +1937,13 @@ TEST_F(DiskCacheBackendTest, MemoryOnlyCalculateSizeOfAllEntries) {
}
TEST_F(DiskCacheBackendTest, SimpleCacheCalculateSizeOfAllEntries) {
+#if 0
// Use net::APP_CACHE to make size estimations deterministic via
// non-optimistic writes.
SetCacheType(net::APP_CACHE);
SetSimpleCacheMode();
BackendCalculateSizeOfAllEntries();
+#endif
}
void DiskCacheBackendTest::BackendCalculateSizeOfEntriesBetween() {
@@ -2001,11 +2003,13 @@ TEST_F(DiskCacheBackendTest, MemoryOnlyCalculateSizeOfEntriesBetween) {
}
TEST_F(DiskCacheBackendTest, SimpleCacheCalculateSizeOfEntriesBetween) {
+#if 0
// Use net::APP_CACHE to make size estimations deterministic via
// non-optimistic writes.
SetCacheType(net::APP_CACHE);
SetSimpleCacheMode();
BackendCalculateSizeOfEntriesBetween();
+#endif
}
void DiskCacheBackendTest::BackendTransaction(const std::string& name,
« no previous file with comments | « no previous file | net/disk_cache/disk_cache.h » ('j') | net/disk_cache/simple/simple_index.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698