From 220d7100e2095b875c401e32c3aab2830d4405e0 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 17 Apr 2009 00:50:04 +0000 Subject: Disk cache: Modify the unit tests so that they test both eviction algorithms without having to recompile the code. Review URL: http://codereview.chromium.org/79031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13909 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/backend_impl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/disk_cache/backend_impl.h') diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index 1960125..7270b30 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -144,6 +144,9 @@ class BackendImpl : public Backend { // Sets internal parameters to enable upgrade mode (for internal tools). void SetUpgradeMode(); + // Sets the eviction algorithm to version 2. + void SetNewEviction(); + // Clears the counter of references to test handling of corruptions. void ClearRefCountForTest(); -- cgit v1.1