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

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: rebased to latest, auto-merged net.gyp Created 7 years, 9 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/cache_util.cc ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f1eb477ec2fb0ee9d8a41b8da8716757444c48f1 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -59,7 +59,10 @@ class DiskCacheTestWithCache : public DiskCacheTest {
DiskCacheTestWithCache();
virtual ~DiskCacheTestWithCache();
+ void CreateBackend(uint32 flags, base::Thread* thread);
+
void InitCache();
+ void InitDefaultCacheViaCreator();
void SimulateCrash();
void SetTestMode();
@@ -67,9 +70,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 +150,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 +162,6 @@ class DiskCacheTestWithCache : public DiskCacheTest {
private:
void InitMemoryCache();
void InitDiskCache();
- void InitDiskCacheImpl();
base::Thread cache_thread_;
DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache);
« no previous file with comments | « net/disk_cache/cache_util.cc ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698