Chromium Code Reviews

Unified Diff: net/disk_cache/disk_cache_test_base.h

Issue 12794003: Initialize the simple cache backend at runtime. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: upload from git Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: net/disk_cache/disk_cache_test_base.h
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h
index b9a18dfab16868d877a9e5ca51677a5579123c73..9c60225c826b7c536d6130756a2c29f0f25be85b 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -59,7 +59,11 @@ class DiskCacheTestWithCache : public DiskCacheTest {
DiskCacheTestWithCache();
virtual ~DiskCacheTestWithCache();
+ disk_cache::Backend* CreateBackendAsModeSuggests(uint32 flags,
+ base::Thread* thread);
+
void InitCache();
+ void InitDefaultCacheViaCreator();
void SimulateCrash();
void SetTestMode();
@@ -67,9 +71,8 @@ class DiskCacheTestWithCache : public DiskCacheTest {
memory_only_ = true;
}
- // Use the implementation directly instead of the factory provided object.
- void SetDirectMode() {
- implementation_ = true;
+ void SetSimpleCacheMode() {
+ simple_cache_mode_ = true;
}
void SetMask(uint32 mask) {
@@ -148,7 +151,7 @@ class DiskCacheTestWithCache : public DiskCacheTest {
int size_;
net::CacheType type_;
bool memory_only_;
- bool implementation_;
+ bool simple_cache_mode_;
bool force_creation_;
bool new_eviction_;
bool first_cleanup_;
@@ -160,7 +163,6 @@ class DiskCacheTestWithCache : public DiskCacheTest {
private:
void InitMemoryCache();
void InitDiskCache();
- void InitDiskCacheImpl();
base::Thread cache_thread_;
DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache);

Powered by Google App Engine