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

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: 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
Index: net/disk_cache/disk_cache_test_base.h
===================================================================
--- net/disk_cache/disk_cache_test_base.h (revision 190930)
+++ net/disk_cache/disk_cache_test_base.h (working copy)
@@ -59,7 +59,10 @@
DiskCacheTestWithCache();
virtual ~DiskCacheTestWithCache();
+ void CreateBackendAsModeSuggests(uint32 flags, base::Thread* thread);
rvargas (doing something else) 2013/03/28 03:12:45 nit: CreateBackend() ? (does it make sense to Crea
pasko-google - do not use 2013/03/28 21:41:42 I made something that is easier to grep through so
rvargas (doing something else) 2013/03/28 22:30:21 hmmm... I really don't consider the uniqueness of
pasko-google - do not use 2013/03/29 02:20:26 Ok, does CreateCacheBackendForTesting sound better
rvargas (doing something else) 2013/03/29 06:49:22 You can go with something that doesn't say "Create
pasko-google - do not use 2013/03/29 20:05:12 renamed to DiskCacheTestWithCache::CreateBackend
pasko-google - do not use 2013/03/29 20:05:12 Interesting. That's the difference, I normally ign
+
void InitCache();
+ void InitDefaultCacheViaCreator();
rvargas (doing something else) 2013/03/28 03:12:45 nit: InitCacheViaCreator ? InitDefaultCache ? (pr
pasko-google - do not use 2013/03/28 21:41:42 The whole point of this function is to test via Cr
rvargas (doing something else) 2013/03/28 22:30:21 I don't agree there. The point is to use the regul
pasko-google - do not use 2013/03/29 02:20:26 I agree that we should test the regular interface
rvargas (doing something else) 2013/03/29 06:49:22 I meant the point of this method, not the point in
void SimulateCrash();
void SetTestMode();
@@ -67,9 +70,8 @@
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 @@
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 @@
private:
void InitMemoryCache();
void InitDiskCache();
- void InitDiskCacheImpl();
base::Thread cache_thread_;
DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache);

Powered by Google App Engine
This is Rietveld 408576698